Molecule Info H5 Helpers
This repository contains a set of helper functions for reading, subsampling and in future versions visualizing the data in the molecule info h5 files as generated by cellranger.
Installation
pip install molecule_info
Usage
Subsampling
import molecule_info as mi
# read
m = mi.MoleculeInfo(path)
# subsample
m.sample_reads(1000, seed=42)
# convert to anndata
adata = m.to_adata()
Select subset of features
import molecule_info as mi
# read
m = mi.MoleculeInfo(path)
# select features (inplace!)
features = ["C0310", "C0311", "C0312"]
m.select_features(features)
# whitelist
barcodes = ["AAACCTGAGGAGTCTG-1", "AAACCTGAGGAGTCTC-1"]
m.select_barcodes(barcodes)
# convert to anndata
adata = m.to_adata()
Metadata
Release files for molecule-info 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| molecule_info-1.0.1.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| molecule_info-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / molecule_info-1.0.1.tar.gz
| Download URL | molecule_info-1.0.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99f58d33f6274433c79b2d9b834bc299b447f03fcab2716654128ef467e4a141
|
|
BLAKE2b-256 checksum How to use checksums |
7c760043889fde661456f994eb7f24209bfc7c3db50ed5ee13206871a3cb2444
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.0 CPython/3.12.9 Linux/4.18.0-425.19.2.el8_7.x86_64
|
Release files / molecule_info-1.0.1-py3-none-any.whl
| Download URL | molecule_info-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0aff5c61fa219e59178b015945e49b17776f1d590a07ce7c4113b24978bbf2fc
|
|
BLAKE2b-256 checksum How to use checksums |
57e909fc8ea7a78f2758317f9c2b44eae7ef82397cd50e61d4b0f411c0435d41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.0 CPython/3.12.9 Linux/4.18.0-425.19.2.el8_7.x86_64
|