Skip to main content

Fast Parser for Ensembl formated GTF Files to Pandas DataFrames

Project description

mbf_gtf

Possibly the fastes Ensembl-GTF parser around (reads the 1GB human GTF in about 10s on my system).

Usage: mbf_gtf.parse_ensembl_gtf("filename.gtf", []) -> A dict of DataFrames

The file may be compressed with gzip - it must then end with ".gz".

The second parameter may be a list of 'features' to retrieve - getting just a subset can greatly improve performance.

Note that this is very ensembl specific, it does not deal with any other GTF format, and that it throws away attributes that are repeated on the sub elements - ie. exons have only gene_id, not gene_name, gene_version, gene_....

The resulting coordinates are pythonic - ie. starting at 0 (ie. shifted -1 from the values in the GTF).

This is part of the mbf_* family of bioinformatic libraries.

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

mbf_gtf-0.4.0.tar.gz (11.6 MB view hashes)

Uploaded Source

Built Distributions

mbf_gtf-0.4.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

mbf_gtf-0.4.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

mbf_gtf-0.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

mbf_gtf-0.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

mbf_gtf-0.4.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

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