Skip to main content

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)

Source distribution for molecule-info 1.0.1
File Size Uploaded
molecule_info-1.0.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for molecule-info 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page