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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tpixel-0.1.2.dev0.tar.gz
  • Upload date:
  • Size: 164.1 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.2.dev0.tar.gz
Algorithm Hash digest
SHA256 d3167ef79e5f6b8b57ab40d916b9a9619b92df1a88ff68009bc1b65d5734510b
MD5 9e7dcc4a7b969311175f953061b9068e
BLAKE2b-256 a9943f36e645cc5bab68c9a5cae34277e6345cb2ea6aafd948ccc5ae6948108c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tpixel-0.1.2.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.2.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 26d6ac40e81facdf836579804f7ef07b7044194aac12e287cc9232a56cc1c44d
MD5 9e412fc5969c587869b023cde687f432
BLAKE2b-256 0fbef34ed40c58e5915d3a534a9e87bb7d0d3b91985c8284a454eb22f42511e1

See more details on using hashes here.

Provenance

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