No project description provided
Project description
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()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
molecule_info-1.0.1.tar.gz
(4.6 kB
view details)
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 molecule_info-1.0.1.tar.gz.
File metadata
- Download URL: molecule_info-1.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.0 CPython/3.12.9 Linux/4.18.0-425.19.2.el8_7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99f58d33f6274433c79b2d9b834bc299b447f03fcab2716654128ef467e4a141
|
|
| MD5 |
529d837cfac7f2c539112ea7e1697139
|
|
| BLAKE2b-256 |
7c760043889fde661456f994eb7f24209bfc7c3db50ed5ee13206871a3cb2444
|
File details
Details for the file molecule_info-1.0.1-py3-none-any.whl.
File metadata
- Download URL: molecule_info-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.0 CPython/3.12.9 Linux/4.18.0-425.19.2.el8_7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aff5c61fa219e59178b015945e49b17776f1d590a07ce7c4113b24978bbf2fc
|
|
| MD5 |
092334e42b8e0b246d3c47e7696b987d
|
|
| BLAKE2b-256 |
57e909fc8ea7a78f2758317f9c2b44eae7ef82397cd50e61d4b0f411c0435d41
|