1 #summary Tutorial for multiple sequence alignments and phylogenetic methods in BioRuby -- under development!
5 Tutorial for multiple sequence alignments and phylogenetic methods in BioRuby -- under development!
8 = Multiple Sequence Alignments =
10 == Reading in a Multiple Sequence Alignment from a File ==
21 == Calculating a Multiple Sequence Alignment ==
23 BioRuby! can be used to execute a variety of multiple sequence alignment
24 programs (such as [http://mafft.cbrc.jp/alignment/software/ MAFFT], [http://probcons.stanford.edu/ Probcons], [http://www.clustal.org/ ClustalW], [http://www.drive5.com/muscle/ Muscle]).
25 In the following, examples for using the MAFFT and Muscle are shown.
35 # Calculates the alignment using the MAFFT program on the local
36 # machine with options '--maxiterate 1000 --localpair'
37 # and stores the result in 'report'.
38 options = [ '--maxiterate', '1000', '--localpair' ]
39 mafft = Bio::MAFFT.new('path/to/mafft', options )
40 report = mafft.query_align( seqs)
42 # Accesses the actual alignment
43 align = report.alignment
45 # Prints each sequence to the console.
46 report.align.each { |s| puts s.to_s }
56 # Calculates the alignment using the Muscle program on the local
57 # machine with options '-quiet -maxiters 64'
58 # and stores the result in 'report'.
59 options = [ '-quiet', '-maxiters', '64' ]
60 muscle = Bio::Muscle.new('path/to/muscle', options )
61 report = muscle.query_align( seqs)
63 # Accesses the actual alignment
64 align = report.alignment
66 # Prints each sequence to the console.
67 report.align.each { |s| puts s.to_s }
72 == Manipulating Multiple Sequence Alignment ==
74 It is probably a good idea to 'clean up' multiple sequence to be used
75 for phylogenetic inference. For instance, columns with more than 50% gaps can be deleted, like so:
87 = Phylogenetic Inference =
89 == Maximum Likelihood ==
102 == Pairwise Distance Based Methods ==