Skip to main content

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

Metadata

Release files for anndata-fcs 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anndata-fcs 0.2.0
File Size Uploaded
anndata_fcs-0.2.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anndata-fcs 0.2.0
File Interpreter ABI Platform
anndata_fcs-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / anndata_fcs-0.2.0.tar.gz

Download URL anndata_fcs-0.2.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
17363ca7adf7c3d5f62a776cae44d566b6f0c4fbc831c42674e51340547a0451
BLAKE2b-256 checksum
How to use checksums
5086241c1f6a10cfab728d00d58c6ae12dac3bd49d23822561547a1213cf666f
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / anndata_fcs-0.2.0-py3-none-any.whl

Download URL anndata_fcs-0.2.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6044ed4d68c1fb375952c90ee26a7d5f450f426fdb123f9e9e7c5a35f2b543e0
BLAKE2b-256 checksum
How to use checksums
54f9860b0bc5af6a95af0db7c0790a95fa878192a11d888c1c8670f375920c00
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page