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.3.dev0.tar.gz (165.7 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.3.dev0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tpixel-0.1.3.dev0.tar.gz
  • Upload date:
  • Size: 165.7 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.3.dev0.tar.gz
Algorithm Hash digest
SHA256 fad0f081b411b980026ddfccc5671bbd3216ef5e090dcaca0673abe9a64f13f1
MD5 88b8397cebbf206dc33f69ef4ea7cd23
BLAKE2b-256 677896b69101efbf92a07dd01e326c544e9bc9fc1bb45b791097fa3570cd833d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tpixel-0.1.3.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.3.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 01d2ab0ac79ff33a3ba1c8b2a0e243ec82bdfbc9354cf21b42235dabb2caad1d
MD5 7c66d7314a024024591259c700d9e3db
BLAKE2b-256 1ffeab4d22c876532f9485f55bbab1e660908f1f9c18d376da70ca610679ffa0

See more details on using hashes here.

Provenance

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