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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file molecule_info-0.2.1.tar.gz.

File metadata

  • Download URL: molecule_info-0.2.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.16 Linux/3.10.0-957.12.2.el7.x86_64

File hashes

Hashes for molecule_info-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4577b0468a17180cc389b84375b3a38f098b4f4153db7eb5836215b0aa1b4db5
MD5 5090fd6f193b5735d618b69808b4fffa
BLAKE2b-256 8b1d193a136f14e2ae218c3955d86c4cb1c5b59b465cd1e34e06fb907a1590f6

See more details on using hashes here.

File details

Details for the file molecule_info-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: molecule_info-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.16 Linux/3.10.0-957.12.2.el7.x86_64

File hashes

Hashes for molecule_info-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cec94cc09f950aa06836d5ac713274d533a34e8c8f3cbdae3e29bcc1be2c553
MD5 cb7249194815acf900bea1135b981cd7
BLAKE2b-256 b4a56c6cdc2efcb28dc2a0e50cf1bb16a4866ac00e954ed6a1c8b4f9148d00a5

See more details on using hashes here.

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