-
Slides day 1
Exercise 1 - Parameter estimation
Exercise 2 - Tree topologies
Exercise 3 - Model comparison
Exercise 4 - Branch support
Exercise 5 - Command line
Exercise 6 - Inferring ML phylogenies with codon models
Exercise 7 - Inferring ML phylogenies using real datasets
Exercise 8 - Re-Analyze published datasets
Pipelines
Building Pipelines
Automatize phylogenetic reconstruction and positive selection analyses for a group of files within a folder
- MSA alignment is inferred with PRANK 151112
- Fasta2Phylip is a software to convert fasta files into phylip files. https://indra.mullins.microbiol.washington.edu/perlscript/docs/Sequence.html
- Phylogentic tree recostruction is performed applying GTR + Gamma
- CodeML control file (Ctl) preparation
- CodeML execution
#!/bin/bash
DIR=/Users/lorenzogatti/Desktop/expipelines
FILES=${DIR}/*.fasta
for f in $FILES
do
echo "Processing $f file..."
# take action on each file. $f store current file name
#0. Get filename
filename=$(basename $f)
# 1. MSA alignment
#muscle -in $f -out ${f}.aln
#prank -d=$f -o=${f}.aln -codon -F -f=phylip
prank -d=$f -o=${f}.aln -codon -F
# 2. Covert fasta file in Phylip format
Fasta2Phylip.pl ${f}.aln.best.fas ${DIR}/${filename}.aln.best.phy
# 3. Tree reconstruction
phyml -i ${DIR}/${filename}.aln.best.phy -m 'GTR' -t 'e' -a 'e' -f 'm'
# 4. Prepare control file codeml
cp ${DIR}/codeml_template.txt ${DIR}/codeml_${filename}.ctl
echo "seqfile = ${DIR}/${filename}.aln.best.phy" >> ${DIR}/codeml_${filename}.ctl
echo "treefile = ${DIR}/${filename}.phy_phyml_tree.txt" >> ${DIR}/codeml_${filename}.ctl
echo "outfile = ${DIR}/${filename}_fr.txt" >> ${DIR}/codeml_${filename}.ctl
# 5. Execute codeml
codeml ${DIR}/codeml_${filename}.ctl
done
- Previous
- Next