Skip to main content

Converting FCS files to AnnData objects.

Project description

anndata-fcs

codecov GitHub Actions Workflow Status PyPI - Version PyPI - License PyPI - Python Version

Converting CITESeq data to FCS file format. anndata-fcs implements function to convert from AnnData object to FlowData objects, DataFrame objects and vice versa. For loading and generation of FCS files anndata-fcs uses the implementation of the flowio package.

Get started

You can install anndata-fcs with pip:

pip install anndata-fcs

Example

# Load anndata object
adata = sc.read_10x_h5(
    filename="5k_pbmc_protein_v3_nextgem_filtered_feature_bc_matrix.h5",
    gex_only=False,
)

# Filter citeseq data
adata_citeseq = adata[:, adata.var["feature_types"] == "Antibody Capture"]

# Convert data to fcs format
fcs_data = anndata_to_fcs(adata_citeseq)

# Save fcs file
fcs_data.write_fcs("citeseq.fcs")

Development

Install development version of anndata-fcs with git:

git clone git+https://github.com/harryhaller001/citeseq_to_fcs.git

To setup development environment create python virtual environment:

python3 -m virtualenv venv
source venv/bin/activate

Use make to setup dependencies:

make install

# activate pre-commit
pre-commit install

Run checks with make:

# Run all checks
make check

# Run formatting
make format

# Run unit testing with pytest
make testing

# Run type checks with mypy
make typing

Dependencies

Required dependencies:

Optional dependencies:

  • For density plots, scipy is required.

License

Please refer to the LICENSE file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anndata_fcs-0.1.1.tar.gz (68.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anndata_fcs-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file anndata_fcs-0.1.1.tar.gz.

File metadata

  • Download URL: anndata_fcs-0.1.1.tar.gz
  • Upload date:
  • Size: 68.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for anndata_fcs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9128ae94dd2fb21b80d172a7a68d69e8c9cc765584d67f4f9ff2a328be9982fe
MD5 ed2bed79689382f36fd76b3b81f99d16
BLAKE2b-256 5464ed72c3c0ff167f73d8ccb2423b59487160f7c079de0c4adb5f0113f414ef

See more details on using hashes here.

File details

Details for the file anndata_fcs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: anndata_fcs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for anndata_fcs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7fa8b937c9af7cb459a74f02696041be52d0c9979472c78e740bd38062b42c95
MD5 1a9f9b0a7a1bd44e8c7aca6d45a22eb2
BLAKE2b-256 de98d621957b076bdda4d4d227efd3e534be803b374ba19ccfbf61ce3d868a41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page