BioCRE
Installation
Installation with virtual environment are suggested:
conda create -n biocre python=3.8
To install BioCRE, make sure you have PyTorch installed.
pip install torch torchvision torchaudio -i https://mirrors.cloud.tencent.com/pypi/simple
Then install BioCRE by pip:
pip install biocre
Usage of BioCRE
Executing the BioCRE pipeline necessitates the provision of three primary inputs: rna_adata, atac_adata, and meta_data:
rna_adata- This represents the snRNA-seq data encapsulated in an AnnData object.atac_adata- This represents the snATAC-seq data encapsulated in an AnnData object.meta_data- This data serves as a genomic annotation of genes and peaks. Typically, the cellranger output file named 'features.tsv.gz' serves as the metadata.
To ensure accurate integration and comparison across multi-omics data, it is imperative that the cells represented in both AnnData objects (rna_adata and atac_adata) are identical. This means that each cell in one dataset should correspond directly to a cell in the other dataset, maintaining consistency in cell identity and order.Pre-processing steps should be applied to the cells prior to inputting them into the analysis pipeline. These pre-processing measures typically include quality control checks, normalization, filtering out low-quality cells or features, and batch effect correction, if necessary. By performing these steps, you enhance the reliability and interpretability of downstream multi-omics analyses, ensuring that any observed correlations or differences are biologically meaningful rather than artifacts of technical variability.
After preparing the input data, you can run BioCRE using following code:
result = linkage(rna_adata,
atac_adata,
meta_data, ,
min_cell=10,
lr=0.5,
max_iter=500,
lambda_l2=0.1,
downsample=None)
The returned list encompasses the linkage for each chromosome. Given that BioCRE can be resource-intensive, employing significant amounts of memory, you may opt to expedite processing and reduce memory consumption through cell downsampling. Setting the desired cell count via the downsample parameter facilitates this. Alternatively, utilizing the metacells derived from rna_adata and atac_adata can also speed computations, offering a strategy to manage large datasets more efficiently.
Metadata
Release files for biocre 1.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| biocre-1.25.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| biocre-1.25-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / biocre-1.25.tar.gz
| Download URL | biocre-1.25.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7187884938a15e06976e5ba352e300b0dca19a1805660f4bf3f00eaac4578bf5
|
|
BLAKE2b-256 checksum How to use checksums |
5ea141033f1df6bccc5ccc645dc22eed324e9821a4afc2fbcb48787957347b88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.7
|
Release files / biocre-1.25-py3-none-any.whl
| Download URL | biocre-1.25-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78db21667f79fe1e23b247a3d3a54aa05b3b89a940bd2add124744cc103dd4c4
|
|
BLAKE2b-256 checksum How to use checksums |
213c75f48d004cb9a554059699997daedf6b41bff2bc5c5c056158d2b83df347
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.7
|