Skip to main content

Converting FCS files to AnnData objects.

Project description

anndata-fcs

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.2.0.tar.gz (7.2 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.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anndata_fcs-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for anndata_fcs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 17363ca7adf7c3d5f62a776cae44d566b6f0c4fbc831c42674e51340547a0451
MD5 e4f84e521960e45052176fd54e044abe
BLAKE2b-256 5086241c1f6a10cfab728d00d58c6ae12dac3bd49d23822561547a1213cf666f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anndata_fcs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for anndata_fcs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6044ed4d68c1fb375952c90ee26a7d5f450f426fdb123f9e9e7c5a35f2b543e0
MD5 7c5334292e5cbfbec2d68df9dcb40161
BLAKE2b-256 54f9860b0bc5af6a95af0db7c0790a95fa878192a11d888c1c8670f375920c00

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