Converting FCS files to AnnData objects.
Project description
anndata-fcs
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:
flowio(Documentation: https://flowio.readthedocs.io/en/latest)anndata(Documentation: https://anndata.readthedocs.io/en/latest)matplotlib(Documentation: https://matplotlib.org/stable/)
Optional dependencies:
- For density plots,
scipyis required.
License
Please refer to the LICENSE file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17363ca7adf7c3d5f62a776cae44d566b6f0c4fbc831c42674e51340547a0451
|
|
| MD5 |
e4f84e521960e45052176fd54e044abe
|
|
| BLAKE2b-256 |
5086241c1f6a10cfab728d00d58c6ae12dac3bd49d23822561547a1213cf666f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6044ed4d68c1fb375952c90ee26a7d5f450f426fdb123f9e9e7c5a35f2b543e0
|
|
| MD5 |
7c5334292e5cbfbec2d68df9dcb40161
|
|
| BLAKE2b-256 |
54f9860b0bc5af6a95af0db7c0790a95fa878192a11d888c1c8670f375920c00
|