Skip to main content

A bioinformatic pipeline for identifying intron length variation across species to design diagnostic multiplex PCR primers.

Project description

 ███████████             ███████████             ███                                    
░░███░░░░░███           ░░███░░░░░███           ░░░                                     
 ░███    ░███ █████ ████ ░███    ░███ ████████  ████  █████████████    ██████  ████████ 
 ░██████████ ░░███ ░███  ░██████████ ░░███░░███░░███ ░░███░░███░░███  ███░░███░░███░░███
 ░███░░░░░░   ░███ ░███  ░███░░░░░░   ░███ ░░░  ░███  ░███ ░███ ░███ ░███████  ░███ ░░░ 
 ░███         ░███ ░███  ░███         ░███      ░███  ░███ ░███ ░███ ░███░░░   ░███     
 █████        ░░███████  █████        █████     █████ █████░███ █████░░██████  █████    
░░░░░          ░░░░░███ ░░░░░        ░░░░░     ░░░░░ ░░░░░ ░░░ ░░░░░  ░░░░░░  ░░░░░     
               ███ ░███                                                                 
              ░░██████                                                                  
               ░░░░░░                                                                   

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 requires the following input files to function:

  • table_OGs_protein_names.txt - Orthologous groups inferred using Broccoli (Derelle et al., 2020)
  • GCF_021901455.1_iyNeoLeco1.1_feature_table.txt - NCBI feature tables in tab delimited format
  • GCF_021901455.1_iyNeoLeco1.1_genomic.gff - 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) using VCFtools.

PyPrimer can be run as a tutorial using files from the example_file directory on GitHub. Feature tables and GFF files will need to be downloaded from the NCBI ftp servers for each species.

Usage

# All genomes, no FST filter
pyprimer --genomes genomes.tsv \
         --broccoli-table table_OGs_protein_names.txt \
         --output-dir out/ \
         --min-intron-diff 100 --max-intron-len 1100

# Focal pair with FST filtering
pyprimer --genomes genomes.tsv \
         --broccoli-table table_OGs_protein_names.txt \
         --output-dir out/ \
         --use-fst --fst-table fst_file.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.
--output-dir out: path to your desired output directory.
--min-intron-diff & --max-intron-lex: The minumum and maximum intron length desired between any two species.\

Optional Arguments:
--use-fst: Arugment to enable FST filtering.
--fst-table, --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.

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

pyprimer_ilps-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyprimer_ilps-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pyprimer_ilps-0.1.0.tar.gz.

File metadata

  • Download URL: pyprimer_ilps-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyprimer_ilps-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3c77dd6566a5b5405f276a2aced529fa356f35cd45adf5a94546b6b6b5f88ec9
MD5 2253dd793e1254af24a539682778fc46
BLAKE2b-256 8ed239665f34a6641673b4573f3f40946340a17b6c71dc258bbc64eb32cd1bb8

See more details on using hashes here.

File details

Details for the file pyprimer_ilps-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyprimer_ilps-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyprimer_ilps-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d98daec44dfd20ce371e66fd86ecf35df116a192c051b6c772eb6b25897f0c9
MD5 bb2780d7682c6228f4d53f7935c13238
BLAKE2b-256 5a36a111f6f29a93878e8edcdf9eb39c6240acc1f051823db446a6e395ed3f33

See more details on using hashes here.

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