Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

***************************************
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

Metadata

Release files for gtf_to_genes 1.0beta2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gtf_to_genes 1.0beta2
File Size Uploaded
gtf_to_genes-1.0beta2.tar.gz 18.5 kB Details

Release files / gtf_to_genes-1.0beta2.tar.gz

Download URL gtf_to_genes-1.0beta2.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ad86d85d3c555e8605a32ca6d9ad34c537e5c2b7c79094b895bc28b45b30718f
BLAKE2b-256 checksum
How to use checksums
d89bdbb884d7ddba138899608665954b0da8a749127f9d800fb1b67c606acf67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.40

1 release file

1.31

1 release file

1.30

1 release file

1.09

1 release file

1.08

1.07

1 release file

1.06

1 release file

1.04

1 release file

1.03

1 release file

1.02

1 release file

1.01

1 release file

1.0

1 release file

This release

1.0beta2 This release

1 release file

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