███████████ ███████████ ███
░░███░░░░░███ ░░███░░░░░███ ░░░
░███ ░███ █████ ████ ░███ ░███ ████████ ████ █████████████ ██████ ████████
░██████████ ░░███ ░███ ░██████████ ░░███░░███░░███ ░░███░░███░░███ ███░░███░░███░░███
░███░░░░░░ ░███ ░███ ░███░░░░░░ ░███ ░░░ ░███ ░███ ░███ ░███ ░███████ ░███ ░░░
░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███░░░ ░███
█████ ░░███████ █████ █████ █████ █████░███ █████░░██████ █████
░░░░░ ░░░░░███ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ ░░░░░░ ░░░░░
███ ░███
░░██████
░░░░░░
PyPrimer is bioinformatic pipeline designed to identify intron length variation between multiple species for the purpose of designing diagnostic multiplex PCR primers. Originally implemented in Neodiprion sawflies, the methodology can be applied to any system with a NCBI annotated reference genome.
PyPrimer was written in Python3.8+ and runs as a command-line-interface application, requiring the following input files to function:
- Orthologous groups inferred for a set of species using Broccoli (Derelle et al., 2020)
- NCBI feature tables in tab delimited format for all species within the orthologous groups.
- NCBI GFF files.
PyPrimer can optionally filter orthogroup candidates using genome wide FST population data for focal species. The original implementation focused on intron variation between N. lecontei and N. pinetum from Glover et al. (2024)
PyPrimer can be run as a tutorial using files from the example_file directory on GitHub. Compressed NCBI feature tables and GFF files for four Neodiprion and one Diprion species are provided along with a file to implment the optional FST filtering between N. lecontei and N. pinetum.
Installation
pip install pyprimer-ilps
conda install bioconda::pyprimer-ilps
Documentation
# All genomes, no FST filter
pyprimer --genomes example_files/genomes.tsv \
--broccoli-table example_files/broccoli_gene_orthology/run1/dir_step3/table_OGs_protein_names.txt \
--annotation-type CDS \
--output-dir example_files/out/focal_pair/ \
--min-intron-diff 100 --max-intron-len 1100
# Focal pair with FST filtering
pyprimer --genomes example_files/genomes.tsv \
--broccoli-table example_files/broccoli_gene_orthology/run1/dir_step3/table_OGs_protein_names.txt \
--annotation-type CDS \
--output-dir example_files/out/focal_pair/ \
--use-fst --fst-table example_files/HighSites_FILTERED_fst_GD_GC_pi_TD_RR_dxy_50kbp.txt --fst-cutoff 0.75 \
--focal-pair pine leco \
--min-intron-diff 100 --max-intron-len 1100
Mandatory arguments:
--genomes: path to the tab-seperate value file idetifying the number of species being considered, and the paths to their respecitive feature tables and .gff files.
--broccoli-table: path to the "table_OGs_protein_names.txt" file output by broccoli in the "dir_step3" directory.
--annotation-type: CDS for designing PCR primers, mRNA for RT-qPCR primers.
--output-dir out: path to your desired output directory.
--min-intron-diff and --max-intron-len: The minumum required difference between introns and maximum intron length desired between any two species.
Optional Arguments:
--use-fst: Arugment to enable FST filtering.
--fst-table and --fst-cutoff: path to the file containing windowed FST values, along with the minimum desired FST threshold. Used in tandem with --use-fst.
--focal-pair: Argument to only search between two focal species.
References
-
Derelle, Romain, Hervé Philippe, and John K. Colbourne. "Broccoli: combining phylogenetic and network analyses for orthology assignment." Molecular Biology and Evolution 37.11 (2020): 3389-3396.
-
Glover, Ashleigh N., et al. "Recurrent selection shapes the genomic landscape of differentiation between a pair of host‐specialized haplodiploids that diverged with gene flow" Molecular Ecology 33.18 (2024): e17509.
Metadata
Release files for pyprimer-ilps 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyprimer_ilps-0.1.2.tar.gz | 10.6 kB | Without provenance | Details for pyprimer_ilps-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyprimer_ilps-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyprimer_ilps-0.1.2-py3-none-any.whl |
Total release size: 24.4 kB
Release files / pyprimer_ilps-0.1.2.tar.gz
| Download URL | pyprimer_ilps-0.1.2.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b58f0e7ffe2cc1776c74b9a55b9c7b8034ee8ba2a33f9eb854008116b38ad9f3
|
|
BLAKE2b-256 checksum How to use checksums |
78b4c5d639a907f1bd0bcf1a8d0b410260a3bc984d3a9441ff913c1dc698211d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5rc1
|
Release files / pyprimer_ilps-0.1.2-py3-none-any.whl
| Download URL | pyprimer_ilps-0.1.2-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f689cb68a5a4741833809e6d92704e03eeb6aaf47c02f02a0bca78a74c504742
|
|
BLAKE2b-256 checksum How to use checksums |
30ffa45b57073159590632f9651f58b12720d7bbad2c64e59d6e48d2950071fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5rc1
|
Security for pyprimer-ilps 0.1.2
Provenance
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.