November 2018
Intermediate to advanced
360 pages
9h 36m
English
Take a look at the following steps:
from Bio.Align.Applications import MafftCommandlinemafft_cline = MafftCommandline(input='sample.fasta', ep=0.123, reorder=True, maxiterate=1000, localpair=True)print(mafft_cline)stdout, stderr = mafft_cline()with open('align.fasta', 'w') as w: w.write(stdout)
The parameters are the same as the ones specified in the supplementary material of the paper. We will use the Biopython interface to call MAFFT.
os.system('trimal -automated1 -in align.fasta -out trim.fasta -fasta')
Here, we just ...