A high-performance, GFF-based variant annotation and sequence processing suite tailored for evolutionary genomics.
pip install EvoAnn==1.1.0
EvoAnn (Evolutionary Annotation Toolkit) annotates SNPs against gene models and extracts reference coding sequences, individual consensus sequences and phased haplotypes. Use all-ann for a genome-wide report or run a standalone annotator for CDS, introns, UTRs, transcript flanks or intergenic regions.
To install EvoAnn 1.1.0 directly from GitHub in a Linux Python environment, run
To run the bundled examples, open a Linux Bash shell in the extracted release directory containing pyproject.toml , src/ and test_data/ . On Windows, use Ubuntu under WSL2. The following commands create the study environment and install EvoAnn from this directory.
EvoAnn 1.1.0 requires Python 3.10 or later, Biopython 1.87 or later and cyvcf2 0.32.1 or later. The Conda environment specifies Python 3.11, NumPy 2.4.4, Biopython 1.87, cyvcf2 0.32.1 and HTSlib 1.23. HTSlib supplies bgzip and tabix . For an editable installation, use python -m pip install -e . from the source directory. Package metadata · Conda environment
The example timings below were measured during development on x86-64 Ubuntu 24.04.3 LTS under WSL2 with Python 3.12.3, NumPy 1.26.4, Biopython 1.83, cyvcf2 0.30.28 and HTSlib 1.19. For the full example, allow 512 MiB of free RAM and 256 MiB of additional disk space beyond the checkout and environment. All ten commands together took 3 min 17 s on one CPU. Per-command measurements are given below.
The three files in test_data/ cover linkage group 1 of the haplotype A reference of Ostryopsis davidiana (虎榛子). Coordinates are 1-based.
The VCF contains 18 diploid individuals ( Sample1 through Sample18 ). All 10,571,400 GT calls are complete and phased. The observed genotypes are 0|0 , 0|1 , 1|0 and 1|1 .
Run this setup once, then use the same shell for the examples. The VCF is already BGZF-compressed. The working copies keep its index ( test_pop.vcf.gz.tbi ) and the automatically generated test_anno_fixed.gff3 together under demo_out/input/ .
Whole-dataset annotation
Open demo_out/all/fast_annotation_summary.html in a browser. EvoAnn embeds the scripts from src/report_assets/ in the HTML for offline viewing. Keep the annotation tables beside the HTML file to use its download links.
GFF3 and reference CDS
Open demo_out/checked_repair_report.html to see how EvoAnn produced checked.gff3 . Each table shows up to 20 examples, with input line numbers for existing features, transcript IDs and genomic intervals. The Download full log button saves every entry as a gzip-compressed TSV. It is embedded in the HTML and works offline. To choose a different report path, add --report to correct-gff .
The report counts exons added, CDS phases corrected, child IDs standardized and shared Parent fields split in the exported GFF3. A separate count lists transcripts whose CDS phases were preserved for manual review. One feature can have several edits. An inferred exon has an empty input line in the log.
Here cds-extract writes the full spliced CDS for every coding transcript. Run it before the standalone cds-ann example, which takes the resulting FASTA as input.
Both commands select gene Od1AG000004 ( OdLG1A:76800-82742 ). The first extracts its complete genomic interval for each individual. The second extracts the spliced CDS for each of its two transcripts, giving 18 individuals × 2 haplotypes × 2 transcripts.
Standalone SNP annotation
Expected results and resources
Paths in the table are relative to demo_out/ . GNU time measured wall time and peak resident memory (RSS) for one sequential run on a single logical CPU of an AMD Ryzen 9 5900HX, using the Linux filesystem. Each measurement includes command startup and output writing. The timings exclude installation, input staging and VCF indexing. The updated correct-gff measurement includes the HTML report, using Python 3.13.5, NumPy 2.5.5, Biopython 1.88 and cyvcf2 0.35.0 on the same CPU.
The working copies, index and outputs used 171 MiB of disk in total. Treat the counts as installation checks and the resource figures as estimates. On other datasets, all-ann holds the reference and gene models in memory while streaming VCF records. The standalone annotators retain variants and hits. Population extraction also depends on sample count, target lengths and the number of transcripts requested.
To reproduce the counts, count table rows after the header, FASTA records by their > headers, and GFF3 features by their nine fields.
Each SNP output is tab-separated and begins with #CHROM , POS , REF , ALT , VARIANT_TYPE , in that order. POS is the 1-based reference position and each row gives one ALT allele and its consequence. The table below lists the remaining columns in file order. The standalone intron-ann , utr-ann and flank-ann writers append .fa to the output prefix and write tab-separated text .
GENE and MRNA are GFF3 identifiers. GENE|MRNA stores both in one column. AA_CHANGE gives the reference residue, 1-based protein position and alternate residue using one-letter codes ( * denotes a stop codon). For example, R26Q at OdLG1A:5774 indicates arginine changing to glutamine at residue 26. REASON can be undetermined_reading_frame or incomplete_codon . INTRON_ID identifies an interval within a transcript. Intron rows include splice_donor_variant and splice_acceptor_variant at the strand-specific boundaries.
DISTANCE is the distance in bases to the relevant transcript boundary. DIST_LEFT and DIST_RIGHT measure the distance to the nearest gene boundary on the corresponding genomic side. A dot marks an absent neighbour or distance. At OdLG1A:33501 , for example, the T>C SNP is intergenic and lies 100 bp downstream of Od1AG000001 . Overlapping regions, transcripts and multiple ALT alleles can each generate additional rows, so regional counts and percentages can sum to more than the input total or 100%.
Coordinates and identifiers. Use the same assembly for the FASTA, GFF3 and VCF. The FASTA identifier (the first word after > ), GFF3 column 1 and VCF CHROM must match exactly, including case and any chr prefix. GFF3 start and end are inclusive. VCF REF should match the FASTA at POS on the genomic forward strand.
Reference and annotation models. Supply plain-text FASTA and tab-delimited GFF3. EvoAnn reads both directly without a FASTA or GFF3 index. Use unique ID values on gene and mRNA rows, Parent= on each mRNA , and Parent= on its exon , CDS and UTR features. Put the gene before its mRNAs and each mRNA before its children. The parser recognizes the feature type mRNA . Give coding features a strand and a CDS phase ( 0 , 1 or 2 , column 8) for protein interpretation. Exon and CDS intervals supply the structure for intron and UTR annotation.
correct-gff writes nine GFF3 columns ( seqid , source , type , start , end , score , strand , phase , attributes ). It exports the gene–mRNA hierarchy and its linked children, supplements missing exons, standardizes child IDs and can expand children shared by several transcripts into per-transcript rows. Use single-parent child rows for population CDS extraction. all-ann , intron-ann and utr-ann run repair internally and write a *_fixed.gff3 beside a .gff3 input. Use a writable working copy named *.gff3 for these commands.
Start with the original annotation when revisiting older repairs. The corrector preserves the first CDS phase in transcript order , including valid values of 1 or 2 on either strand, and propagates it through an unambiguous CDS chain. An earlier repair that replaced that value with zero lost the original frame information. cds-extract exports the full spliced nucleotides including partial codons. Pass that sequence to cds-ann . all-ann and cds-ann apply the first phase once for translation. Amino acid 1 refers to the first complete codon of the model and can differ from the full protein's numbering at a partial 5′ end.
VCF for SNP annotation. all-ann and the five standalone annotators accept plain VCF or gzipped VCF without an index. They use the site alleles independently of sample genotypes and ploidy. A one-base REF with several ALT alleles is evaluated separately for each eligible one-base ALT. Indels and spanning-deletion * alleles are skipped. Apply any desired FILTER , quality or population-frequency thresholds before annotation.
VCF for individual sequences. consensus-extract and phased-extract query intervals in a coordinate-sorted BGZF VCF with a matching .tbi or .csi beside it. For a sorted plain VCF of your own, bgzip -c cohort.vcf > cohort.vcf.gz followed by tabix -p vcf cohort.vcf.gz creates this pair.
The extractors read exactly two allele indices per sample and support diploid FORMAT/GT calls only. Supply explicit nucleotide alleles at non-overlapping records because extraction advances past the REF bases it has consumed. Keep multi-allelic sites in one record so a genotype such as 1|2 selects the first and second ALT alleles.
consensus-extract accepts phased or unphased diploid calls. It writes the called base for homozygotes and an IUPAC ambiguity code for heterozygous SNPs (e.g. A/G gives R ). A missing allele gives N across that site's output width.
phased-extract needs phased heterozygotes ( 0|1 , 1|0 , etc.) for interpretable haplotypes. It copies the first and second genotype alleles into _h1 and _h2 and relies on the phasing supplied in the VCF. A missing allele gives N on the affected haplotype.
For explicit sequence indels, the extractors pad shorter alleles with - to the longest REF/ALT length at that record. For a heterozygous indel, consensus uses the second called allele if it is alternate, otherwise the first. Phased output retains both calls.
Command syntax and sequence formats
Angle brackets mark values to supply. Square brackets mark optional arguments. evoann --help displays the options for that command. The labels fast-ann and stream-ann refer to the registered commands all-ann and flank-ann , respectively.
--flank is the strand-aware upstream/downstream distance from the transcript boundaries (default 2,000 bp).
cds-extract takes an output prefix . By default it selects the transcript with the longest total CDS per gene and writes .fa . Its all-transcript flag is --all_transcripts (legacy alias -all ), which writes _all.fa . Headers have the form >GENE|MRNA . cds-ann uses these IDs to match models and reports non-synonymous calls.
The two population extractors use the hyphenated --all-transcripts with --cds-only . --gene takes the exact GFF3 gene ID . --gene-file takes one such ID per line. Omitting both selects all genes. The default gene interval includes introns and follows genomic forward orientation. --cds-only splices CDS segments in transcript orientation, reverse-complementing the negative strand, and defaults to the longest total CDS per gene.
Population output is one FASTA per gene, named _consensus.fasta or _phased.fasta . CDS mode inserts _cds after the gene ID. Consensus headers are >GENE_SAMPLE or >GENE_SAMPLE_TRANSCRIPT in CDS mode. Phased headers also carry _h1 or _h2 .
utr-ann processes the eligible transcripts with exon and CDS models. Its current parser also accepts --all_transcripts ( -all ), which produces the same transcript selection as the default.
EvoAnn is distributed under the MIT license .
Release files for EvoAnn 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .
Source distribution (sdist)
Built distribution (wheel)
Total release size: 16.3 MB
Release files / evoann-1.1.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Release files / evoann-1.1.0-py3-none-any.whl
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Security for EvoAnn 1.1.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Both files in this release have been uploaded with provenance metadata.
Attestation for evoann-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Attestation for evoann-1.1.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
Release history Release notifications | RSS feed
Nov 30, 2026 2 release files Full provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
