Create BioTuring Compressed Study (bcs) file
Project description
pyBCS
This is a python library to create a BioTuring Compressed Study (bcs
) file from an AnnData (scanpy) object.
bcs
files can be imported directly into BBrowser, a software for single-cell data.
Visit our github for more detail.
Installation
pip install pyBCS-bioturing
Example
Scanpy
from pyBCS import scanpy2bcs
scanpy2bcs.format_data("/mnt/example/data.h5ad", "/mnt/example/data.bcs",
input_format="h5ad", graph_based="louvain")
If your data has antibody-derived tags (ADT), you can put ADT expression data in the obs
as cell metadata with a distinguishable suffix. For example, ADT expression of CD45
will be CD45_TotalSeqC
. In such cases, you can declare cite_seq_suffix
when using format_data()
:
scanpy2bcs.format_data("/mnt/example/data.h5ad", "/mnt/example/data.bcs",
input_format="h5ad", graph_based="louvain", cite_seq_suffix="_TotalSeqC")
SPRING
from pyBCS import scanpy2bcs
scanpy2bcs.format_data("/mnt/example/spring_study", "/mnt/example/data.bcs",
input_format="spring",
graph_based="louvain")
Loom
from pyBCS import scanpy2bcs
scanpy2bcs.format_data("/mnt/example/data.loom", "/mnt/example/data.bcs",
input_format="loom",
barcode_name="CellID",
feature_name="Gene",
dimred_keys={"tsne":["tsne1", "tsne2"]})
Abloom
from pyBCS import scanpy2bcs
scanpy2bcs.format_data("/mnt/example/data.loom", "/mnt/example/data.bcs",
input_format="abloom",
barcode_name="observation_id",
feature_name="accession_id",
graph_based="cluster")
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
pyBCS-bioturing-0.4.7.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for pyBCS_bioturing-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8b14fc8eff0a222aa24cc215733e59c0fbbfb5cc323dab1a05f313f836285c1 |
|
MD5 | 70d857a8d7aa136b3a02c1a02bf33f24 |
|
BLAKE2b-256 | 40c8060d90ad7536be835335e1bbbca2628e619b3730a659b838bffb2d033780 |