Skip to main content

umiread

umiread is a lightweight utility that allows for seamless parsing of R1 FASTQ files generated from 10x single cell 3' gene expression assays. The functions contained within this package show the user very important baseline quality control metrics about the unique molecular identifiers (UMIs) contained within one or more R1 FASTQs, including total number of unique and non-unique sequences, nucleotide distribution, and basecalling errors. umiread can be used for preliminary parsing of 10x single cell FASTQ files prior to downstream analysis. For more information on 10x single cell 3' gene expression assays, visit https://support.10xgenomics.com/single-cell-gene-expression/sequencing/doc/specifications-sequencing-requirements-for-single-cell-3

Installation & Dependencies

umiread requires the following packages:

- pandas

- numpy

- matplotlib

In PyCharm or another Python IDE (Python 3 or greater), installation can be completed as follows:

pip install umiread

Reading & Extracting from FASTQ files

umiread has the ability to parse one or more R1 FASTQ files from a 10x 3' single cell assay (any version).

For parsing a single FASTQ file:

from umiread import extract_from_single
umi_data = extract_from_single("path/to/FASTQ file/~.fastq.gz")

For parsing multiple FASTQ files contained within the same folder (i.e. multiple FASTQs corresponding to the same sample):

from umiread import extract_from_folder
umi_data = extract_from_folder("path/to/FASTQ folder/")

The parser will collect the 10bp UMI at the beginning of each R1 sequence contained within the targeted FATSQ files. Assigning the parsed sequences to an object such as umi_data will allow for the user to generate quality control metrics.

Collecting Quality Control Metrics & Sequencing Errors

Having information about the total number of UMI sequences, unique UMI sequences, and nucleotide distribution can be useful for tracking the quality of wet lab workflows and overall data quality before downstream applications and further data analysis. umiread possesses a handful of functions that can print these statistics to console.

For basic statistics such as total number of UMIs, unique UMIs, percentage of UMIs that are unique, and the number of UMIs with a sequencing error, use the following command:

from umiread import UMIStats
UMIStats(umi_data).collect_qc_statistics()

This function will output a simple csv with all aforementioned QC metrics.

For nucleotide distributions (i.e. the number of A, C, T, G in all unique UMIS):

UMIStats(umi_data).base_distribution()

For a graph of the positional distribution of sequencing errors in the UMI (denoted by "N" in the FASTQ file):

UMIStats(umi_data).show_seq_errors()

Metadata

Release files for umiread 1.9.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 umiread 1.9.1
File Size Uploaded
umiread-1.9.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for umiread 1.9.1
File Interpreter ABI Platform
umiread-1.9.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / umiread-1.9.1.tar.gz

Download URL umiread-1.9.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1e3a42c0e1531960d2b9192b837d6de99ceb45543ea6332f9492f16a415f22b9
BLAKE2b-256 checksum
How to use checksums
478595d7b8dfdf2ac1094d23422715c2451ed7197679cff63397ac1d8d4e56e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.13.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

Release files / umiread-1.9.1-py3-none-any.whl

Download URL umiread-1.9.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20e22a75dca04fd17cae87b06c80989545cf15aee989874e7eede33b5f60ff36
BLAKE2b-256 checksum
How to use checksums
6f28bb3a1324be6d9f8ed7e0df1eb97bb1716640fc77e8ee50113f61b109b1d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.13.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

Release history Release notifications | RSS feed

This release

1.9.1 This release

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