Sign inSign up

csicunam/primers4clades

By csicunam

•Updated almost 5 years ago

PCR primers for cross-species amplification of sequences from metagenomic DNA or selected lineages

Image
0

1.1K

csicunam/primers4clades repository overview

⁠primers4clades

This repository distributes a Docker image with primers4clade ready to use. Primers4clades provides a fully automated pipeline for the design of PCR primers for cross-species amplification of novel sequences from metagenomic DNA or from uncharacterized organisms belonging to user-specified phylogenetic lineages. It implements an extended CODEHOP strategy based on both DNA and protein multiple alignments of coding genes and evaluates thermodynamic properties of the oligonucleotide pairs, as well as the phylogenetic information content of predicted amplicons, computed from the branch support values of maximum likelihood phylogenies.

This legacy container replaces the web servers http://floresta.eead.csic.es/primers4clades⁠ & http://maya.ccg.unam.mx/primers4clades⁠

Read more at:

B Contreras-Moreira, B Sachman-Ruiz, I Figueroa-Palacios, P Vinuesa (2009) primers4clades: a web server that uses phylogenetic trees to design lineage-specific PCR primers for metagenomic and diversity studies. https://doi.org/10.1093/nar/gkp377⁠

flowchart flowchart
⁠The primers4clades extended CODEHOP algorithm

This container behaves as the interactive mode of the old Web server, and comprises the following steps:

  • Translates the input CDSs to protein using selected translation tables, collapsing redundant sequences into single haplotypes. If the FASTA header contains the coordinates of the exon boundaries of eukaryotic genes, these are spliced and joined before translation. The translation products are finally aligned using muscle, alignment that is used to compute the underlying codon alignment.

  • Reconstructs a NJ distance tree using neighbor from the PHYLIP package, using either the protein or codon alignments, from which WAG+G or HKY85+G distances are estimated under the maximum likelihood (ML) criterion using TREE-PUZZLE. The resulting NJ tree is printed out along with information about the min. and max. pairwise distances found between sequences.

  • The oligonucleotides are designed for the aligned set of input sequences using an extended CODEHOP (COnsensus DEgenerate Hybrid Oligonucleotide Primer) design strategy. The original CODEHOP algorithm Rose et al (1998, 2003) is based on the identification of highly conserved regions within protein BLOCKS and the use of a particular codon usage tables (CUT) and position specific scoring matrix (PSSM) to derive the CODEHOP formulation. The extended CODEHOP algorithm implemented in primers4clades comprises:

    • The automatic evaluation of a non-redundant set of codon usage tables (nrCUTs) for all organisms recognised in the input file FASTA header, as well as the computation of alignment-specific CUT.
    • In addition to the CODEHOP formulations derived from the different CUTs, the server computes what we call a corrected CODEHOP in which the degeneracy level is corrected considering the target codon alignment, which is printed out.
    • it also computes a so-called relaxed corrected CODEHOP which has an extended degenerate region as compared to the corrected CODEHOP in case that the latter has a degeneracy level < 24.
    • A fourth, fully degenerated oligonucleotide formulation is also computed based on the codon alignment.
    • A comprehensive set of thermodynamic parameters is calculated for each oligo. The primers4clades pipeline therefore provides the user with 4 primer formulations, which are displayed on screen, aligned with the corresponding codon multiple sequence alignment.
    • The coordinates of each oligonucleotide in a primer pair are used to cut the "theoretical amplicon sets" out of the original protein and codon alignments. A non-redundant set of primer pairs is computed in such a manner that amplicons dereived from the same codon usage table don't overlap more than 80% of their lengths. The distribution of this non-redundant set of primers and theoretical amplicon sets is mapped on the protein coordinates of the first sequence in the multiple sequence alignment of the input data.
    • Maximum likelihood (ML) trees are then inferred for each aligned amplicon set using PhyML and a default or user-selected substitution matrix or model. The phylogenetic information content of each amplicon is calculated from the corresponding ML phylogenies by computing the mean and median Shimodaira-Hasegawa-like branch support values of the ML phylogeny.
    • The CODEHOP pairs and corresponding theoretical amplicons found for the input data set are filtered by the user-provided length range of the amplicons and ranked according to the thermodynamic attributes of the former. An amplicon distribution map in PNG format is provided as a convenient overview of the coverage of the target locus, which also depicts the thermodynamic quality attributes of each primer pair.
    • The phylogenetic information content of each aligned amplicon set is computed and printed out along with the four primer formulations aligned with the underlying codon alignment.
⁠File formats

Input files are expected to be in FASTA format. It is recommended that [taxon names] are added in square brackets:


>[A_tumefaciens_C58_UWash]
atggctcagaccctttcgtttaacggtcgcagg...
>27380521
atggcgcagcagacattcaccggtcgcaaacgc...
>[M_loti]|13470542
atggcccagacccagactttcaatggccgcaga...

⁠Installing Docker

See instructions here⁠ or the blog post https://bioinfoperl.blogspot.com/2024/01/howto-run-primers4clades-with-docker.html⁠.

⁠Examples of use

Once Docker is set up you can see the options of the main scripts in the terminal as follows:


# This takes longer the first time as the image needs to be downloaded.
docker run --rm -it csicunam/primers4clades Fasta2clusters.pl

docker run --rm -it csicunam/primers4clades Fasta2primers.pl

In order to analyze your own, local files you can do:


cd your_pdb_folder/
docker run --rm -v "$PWD:$PWD" -w "$PWD" -u $UID:$GROUPS -it csicunam/primers4clades Fasta2clusters.pl -1 yourfile.fna

## test with provided example 
docker run --rm -it csicunam/primers4clades ls examples

# STEP1) produce clusters 
docker run --rm -v "$PWD:$PWD" -w "$PWD" -u $UID:$GROUPS -it csicunam/primers4clades Fasta2clusters.pl -i example/rpoB.fna

# STEP2) get primers and evaluate amplicon with nucleotide substitution models, min quality 50, 
# compute codon frequencies from input (-C)
docker run --rm -v "$PWD:$PWD" -w "$PWD" -u $UID:$GROUPS -it csicunam/primers4clades Fasta2primers.pl \
  -n rpoB_cluster_0.fna -p rpoB_cluster_0.faa -C -P 50

# get primers and evaluate amplicon with amino acid replacement models
docker run --rm -v "$PWD:$PWD" -w "$PWD" -u $UID:$GROUPS -it csicunam/primers4clades Fasta2primers.pl \
  -n rpoB_cluster_0.fna -p rpoB_cluster_0.faa -C -P 50 -M

Note: The results will be saved to your local folder. See also our blog post: https://bioinfoperl.blogspot.com/2024/01/howto-run-primers4clades-with-docker.html⁠

The original tutorial can still be found in PDF format⁠.

⁠Open-source software used by primers4clades
  1. M Anisimova, O Gascuel (2006) Approximate likelihood-ratio test for branches: A fast, accurate, and powerful alternative. Syst. Biol., 55, 539-352.
  2. RC Edgar (2004) MUSCLE: multiple sequence alignment with high accuracy and high throughput. Nucleic Acids Res., 32, 1792-1797.
  3. J Felsenstein (2004) PHYLIP (Phylogeny Inference Package) v3.6. Distributed by the author. Department of Genetics, University of Washington, Seattle.
  4. S Guindon, O Gascuel (2003) A simple, fast, and accurate algorithm to estimate large phylogenies by maximum likelihood. Syst. Biol., 52, 696-704.
  5. SN Jarman (2004) Amplicon: software for designing PCR primers on aligned DNA sequences. Bioinformatics, 20, 1644-1645.
  6. TM Rose, JG Henikoff, S Henikoff (2003) CODEHOP (COnsensus-DEgenerate Hybrid Oligonucleotide Primer) PCR primer design. Nucleic Acids Res., 31, 3763-3766.
  7. TM Rose, ER Schultz, JG Henikoff, S Pietrokovski, CM McCallum, S Henikoff (1998) Consensus-degenerate hybrid oligonucleotide primers for amplification of distantly related sequences. Nucleic Acids Res., 26, 1628-1635.
  8. HA Schmidt, K Strimmer, M Vingron, A von Haeseler (2002) TREE-PUZZLE: maximum likelihood phylogenetic analysis using quartets and parallel computing. Bioinformatics, 18, 502-504.
  9. JE Stajich, D Block, K Boulez, SE Brenner, SA Chervitz, C Dagdigian, G Fuellen, JG Gilbert, I Korf, H Lapp et al.(2002) The Bioperl toolkit: Perl modules for the life sciences. Genome Res., 12, 1611-1618.

Tag summary

Content type

Image

Digest

Size

222.1 MB

Last updated

almost 5 years ago

docker pull csicunam/primers4clades