Skip to main content

Pixel-block alignment viewer for hundreds of sequences (Roark-style PIXEL plots)

Project description

tpixel

Pixel-block alignment viewer for hundreds of sequences. Renders Roark-style PIXEL plots: grey=match, red=substitution, black=gap.

Install

pip install tpixel

Usage

# Protein alignment (AA mode)
tpixel --fasta examples/env_protein_aligned.fasta -o examples/test_hiv_pixel.png

# Nucleotide alignment (NT mode — auto-detected)
tpixel --fasta examples/env_codon_aligned.fasta -o examples/test_hiv_nt_pixel.png

HIV mode is auto-detected when the alignment contains HxB2 and a *_ref sequence. Force with --hiv or --no-hiv. Nucleotide vs amino-acid mode is auto-detected from sequence content. Force with --nt or --aa.

Examples

Both alignments contain the same 33 sequences (HxB2, animal1_ref, and 31 sample sequences from 7 animals):

Sequence Type
HxB2 Coordinate reference
animal1_ref Parental lineage reference
animal1_s1 .. s7 animal1 samples (7)
animal2_s1 .. s5 animal2 samples (5)
animal3_s1 .. s8 animal3 samples (8)
animal4_s1 animal4 sample (1)
animal5_s1 .. s5 animal5 samples (5)
animal6_s1 .. s2 animal6 samples (2)
animal7_s1 .. s3 animal7 samples (3)

Protein alignment (AA)

env_protein_aligned.fasta — 887 columns of HIV-1 Env protein. Each AA = 1 pixel.

PIXEL plot — protein

Nucleotide alignment (NT)

env_codon_aligned.fasta — 2661 columns of codon-aligned HIV-1 Env DNA. Each NT = 1 pixel. PNGS markers are detected by translating internally and mapped back to NT columns.

PIXEL plot — nucleotide

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

tpixel-0.1.5.dev0.tar.gz (165.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tpixel-0.1.5.dev0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file tpixel-0.1.5.dev0.tar.gz.

File metadata

  • Download URL: tpixel-0.1.5.dev0.tar.gz
  • Upload date:
  • Size: 165.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tpixel-0.1.5.dev0.tar.gz
Algorithm Hash digest
SHA256 cc4aea08c01014b8a666e106fc9ed297e38eb11c5f1702263eb62d25a2caccc6
MD5 7bbc8f071cce787525f3d27c9fbba910
BLAKE2b-256 a3ca2e73ed25da5a58c5861aa4834dce590da2c6c988855e48c23baf204787bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpixel-0.1.5.dev0.tar.gz:

Publisher: publish.yml on tmsincomb/tpixel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tpixel-0.1.5.dev0-py3-none-any.whl.

File metadata

  • Download URL: tpixel-0.1.5.dev0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tpixel-0.1.5.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 95a1671465d8b51b584e51c475116b5d1b88331730c0324a1700c9f64a078922
MD5 0a34638b3f89038da7cd62527337348c
BLAKE2b-256 bc1f01d3c8a5bff35cd2f79db8e9c8cf2d7ce736a61e3ce511232709ee970928

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpixel-0.1.5.dev0-py3-none-any.whl:

Publisher: publish.yml on tmsincomb/tpixel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page