Skip to main content

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-0.2.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

molecule_info-0.2.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page