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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58fef7bb60dc9929108f0c61d5aae693f3c27327b13572797301bb953bc65d92
|
|
| MD5 |
ec01d67da55e5484a5741bbc73055887
|
|
| BLAKE2b-256 |
a84247e3f74454191a4bce0dfd538ac361ee4e6070889a2e350e163c03d02367
|
Provenance
The following attestation bundles were made for tpixel-0.1.1.dev0.tar.gz:
Publisher:
publish.yml on tmsincomb/tpixel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tpixel-0.1.1.dev0.tar.gz -
Subject digest:
58fef7bb60dc9929108f0c61d5aae693f3c27327b13572797301bb953bc65d92 - Sigstore transparency entry: 1002383996
- Sigstore integration time:
-
Permalink:
tmsincomb/tpixel@98b5d25959347390d6fed8e7c4d634ea05a9c536 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tmsincomb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@98b5d25959347390d6fed8e7c4d634ea05a9c536 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f5c431dec0e5f02e2ed490f8df8f8d13cd861335389323b69f01c8372760d32
|
|
| MD5 |
9ce4d7901d8a97850a2dca67dc8b216f
|
|
| BLAKE2b-256 |
23f8be43ace346228690d5e53425522303ce43838752032ca4ffd2493e6dc038
|
Provenance
The following attestation bundles were made for tpixel-0.1.1.dev0-py3-none-any.whl:
Publisher:
publish.yml on tmsincomb/tpixel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tpixel-0.1.1.dev0-py3-none-any.whl -
Subject digest:
2f5c431dec0e5f02e2ed490f8df8f8d13cd861335389323b69f01c8372760d32 - Sigstore transparency entry: 1002384002
- Sigstore integration time:
-
Permalink:
tmsincomb/tpixel@98b5d25959347390d6fed8e7c4d634ea05a9c536 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tmsincomb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@98b5d25959347390d6fed8e7c4d634ea05a9c536 -
Trigger Event:
workflow_dispatch
-
Statement type: