Skip to main content

Tests Coverage Status PyPI

gtfparse

Parsing tools for GTF (gene transfer format) files.

Example usage

Parsing all rows of a GTF file into a Pandas DataFrame

from gtfparse import read_gtf

# returns GTF with essential columns such as "feature", "seqname", "start", "end"
# alongside the names of any optional keys which appeared in the attribute column
df = read_gtf("gene_annotations.gtf")

# filter DataFrame to gene entries on chrY
df_genes = df[df["feature"] == "gene"]
df_genes_chrY = df_genes[df_genes["seqname"] == "Y"]

Getting gene FPKM values from a StringTie GTF file

from gtfparse import read_gtf

df = read_gtf(
    "Transcripts.gtf",
    column_converters={"FPKM": float})

gene_fpkms = {
    gene_name: fpkm
    for (gene_name, fpkm, feature)
    in zip(df["seqname"], df["FPKM"], df["feature"])
    if feature == "gene"
}

Metadata

Release files for gtfparse-transcript-transformer 2.5.0

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

Source distribution (sdist)

Source distribution for gtfparse-transcript-transformer 2.5.0
File Size Uploaded Provenance Actions
gtfparse_transcript_transformer-2.5.0.tar.gz 17.1 kB Without provenance Details for gtfparse_transcript_transformer-2.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gtfparse-transcript-transformer 2.5.0
File Interpreter ABI Platform Actions
gtfparse_transcript_transformer-2.5.0-py3-none-any.whl Python 3 none any Details for gtfparse_transcript_transformer-2.5.0-py3-none-any.whl

Total release size: 32.7 kB

Release files / gtfparse_transcript_transformer-2.5.0.tar.gz

Download URL gtfparse_transcript_transformer-2.5.0.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cee74c7722bb1a25634edda8b87feee2270790cb2410cb0c0e9d83275d87e988
BLAKE2b-256 checksum
How to use checksums
67fcca4c4b61e332da8a372b491fafc1f59a7672e7dbd8d96e9cb12b78a8a1a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / gtfparse_transcript_transformer-2.5.0-py3-none-any.whl

Download URL gtfparse_transcript_transformer-2.5.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
437cd7ede611ba0eaa4b1a0522fd99d337574ee11702107f93733701f0b916d1
BLAKE2b-256 checksum
How to use checksums
e2c046e15b8928792ba4bae7cda641c42baf638b1ca94c6c1b6f3d4522eceb6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for gtfparse-transcript-transformer 2.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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