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.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

mbf_gtf-0.4.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (317.4 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64

File details

Details for the file mbf_gtf-0.4.1.tar.gz.

File metadata

  • Download URL: mbf_gtf-0.4.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.7.0

File hashes

Hashes for mbf_gtf-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ed86a57a474777c0c9a8926687271cc5579776cd2517f00bc1ab3e0359522973
MD5 f75ddaa76c428fc791e8870e98f19ad3
BLAKE2b-256 782e7e7ffc06f8a717c9774395640747a6db3e160a41060e5137877b267dbafc

See more details on using hashes here.

File details

Details for the file mbf_gtf-0.4.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mbf_gtf-0.4.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cbbecbc534c9271385123d19235cc360f900ee2d869579c49d1621e85403a95f
MD5 eab6425a467e607d77ae86384bbf1dd9
BLAKE2b-256 db43bbd078b335e8dca1984a97bcda796b0e88fd7221c49618033cac5f40aa74

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