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 -e .

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.1.dev0.tar.gz (164.0 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.1.dev0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tpixel-0.1.1.dev0.tar.gz
  • Upload date:
  • Size: 164.0 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.1.dev0.tar.gz
Algorithm Hash digest
SHA256 58fef7bb60dc9929108f0c61d5aae693f3c27327b13572797301bb953bc65d92
MD5 ec01d67da55e5484a5741bbc73055887
BLAKE2b-256 a84247e3f74454191a4bce0dfd538ac361ee4e6070889a2e350e163c03d02367

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpixel-0.1.1.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.1.dev0-py3-none-any.whl.

File metadata

  • Download URL: tpixel-0.1.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f5c431dec0e5f02e2ed490f8df8f8d13cd861335389323b69f01c8372760d32
MD5 9ce4d7901d8a97850a2dca67dc8b216f
BLAKE2b-256 23f8be43ace346228690d5e53425522303ce43838752032ca4ffd2493e6dc038

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpixel-0.1.1.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