Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Fast GTF parser

Project Description
***************************************
Overview
***************************************
We want an extremely fast, lightweight way to access gene data stored in GTF format.

The parsed data is held in an intuitive
Gene
-> transcript
-> transcript
with exons being stored as intervals

Our aim is to
* cache data in binary format, which can be
* re-read in < 10s for even the largest genomes

Currently initial parsing Ensembl Homo sapiens release 56 takes around 4.5 minutes.
The binary data can be reloaded in < 10s.
This contains *all* of the data structure in the original GTF file

Note that we sacrifice memory usage for speed. This is seldom a problem for modern computers
and genome sizes (There are around ~400,000 exons but there are stored as intervals / int pairs)

***************************************
A Simple example
***************************************
::
gene_structures = t_parse_gtf("Mus musculus")

#
# used cached data for speed
#
ignore_cache = False

#
# get all protein coding genes only
#
genes_by_type = gene_structures.get_genes(gtf_file, logger, ["protein_coding"], ignore_cache = ignore_cache)

#
# print out gene counts
#
t_parse_gtf.log_gene_types (logger, genes_by_type)

return genes_by_type
Release History

Release History

This version
History Node

1.40

History Node

1.31

History Node

1.30

History Node

1.09

History Node

1.08

History Node

1.07

History Node

1.06

History Node

1.04

History Node

1.03

History Node

1.02

History Node

1.01

History Node

1.0

History Node

1.0beta2

History Node

1.0beta

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
gtf_to_genes-1.40.tar.gz (35.6 kB) Copy SHA256 Checksum SHA256 Source Dec 4, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting