Skip to main content

txview

Terminal plotter for transcript models of a gene from a GTF annotation.

Install

Latest from main:

pip install "txview @ git+https://github.com/ymvk/monorepo@main#subdirectory=packages/txview"

Pin to a version tag:

pip install "txview @ git+https://github.com/ymvk/monorepo@txview-v0.1.0#subdirectory=packages/txview"

CLI

txview path/to/annotation.gtf BRCA1

Accepts .gtf or .gtf.gz. The gene may be specified by gene_name or gene_id.

Flags:

Flag Default Description
--width terminal width - 30 Display width in columns
--intron-width 5 Columns reserved per truncated intron

Example

BRCA1 [chr17:43044295-43125483] (-)
ENST00000357654  │████████████████████████████╌╌╌╌╌█╌╌╌╌╌█╌╌╌╌╌█╌╌╌╌╌██╌╌╌╌╌██╌╌╌╌╌██╌╌╌╌╌███████████████████████████◀
ENST00000471181  │████████████████████████████╌╌╌╌╌─╌╌╌╌╌─╌╌╌╌╌─╌╌╌╌╌██╌╌╌╌╌──╌╌╌╌╌──╌╌╌╌╌███████████████████████◀
ENST00000586385                                    │╌╌╌╌╌─╌╌╌╌╌█╌╌╌╌╌──╌╌╌╌╌██╌╌╌╌╌──╌╌╌╌╌█◀

Legend:

Char Meaning
█ Exon
─ Intron within a transcript's span (e.g. alternative splicing)
╌ Truncated intron region (intergenic-like compression for display)
▶ TSS (5' end) on + strand; ◀ on - strand
│ TTS (3' end)

Python API

from txview import parse_gtf, layout, render

transcripts = parse_gtf("annotation.gtf", "BRCA1")
segments, width = layout(transcripts, total_width=120, intron_width=5)
print(render(transcripts, segments, width))

parse_gtf returns dict[str, Transcript] keyed by transcript_id.

Metadata

Release files for txview 0.1.1

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

Source distribution (sdist)

Source distribution for txview 0.1.1
File Size Uploaded Provenance Actions
txview-0.1.1.tar.gz 5.3 kB Without provenance Details for txview-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for txview 0.1.1
File Interpreter ABI Platform Actions
txview-0.1.1-py3-none-any.whl Python 3 none any Details for txview-0.1.1-py3-none-any.whl

Total release size: 10.5 kB

Release files / txview-0.1.1.tar.gz

Download URL txview-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0b0708dd3c93a05396faf9a38c099d53999236d78e50b39be860b4b4b7f28a79
BLAKE2b-256 checksum
How to use checksums
94ae7ae66e19f741536f45c466fb927ce6eaf3788c21272e543146580fcfd583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / txview-0.1.1-py3-none-any.whl

Download URL txview-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
caae93893561f873b70ef133b82cdcead116cc16b979a553f4f2a9f5656e454c
BLAKE2b-256 checksum
How to use checksums
9603d1797424618a8e8c5f3971f1638f6d794fa5341b9e38ccb4949ea8ea2102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for txview 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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