Griffitts:Phylogenetics: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(Started page)
 
(Updated protocols)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:


==Alignment==
==Alignment==
To start off, you need to perform an alignment of all your sequences. This can be done using MUSCLE. The output file (.txt) then needs to be converted to a .nex file, which can be done using ALTER.
===MUSCLE===
===MUSCLE===
# Go to the [http://www.ebi.ac.uk/Tools/services/web/toolform.ebi?tool=muscle MUSCLE website]
# Go to the [http://www.ebi.ac.uk/Tools/services/web/toolform.ebi?tool=muscle MUSCLE website]
Line 13: Line 15:
# When you have the alignment, click on the '''Result Summary''' tab
# When you have the alignment, click on the '''Result Summary''' tab
# Right click on the link beneath '''Alignments in FASTA format''' and select '''Save link as…'''
# Right click on the link beneath '''Alignments in FASTA format''' and select '''Save link as…'''
# Give the file the name that you want and then add the extension '''.txt'''
# Give the file the name that you want and then add the extension '''.txt'''<br><br>
NOTE: At this point you can view your aligned sequences in [http://macclade.org/macclade.html MacClade].


===ALTER===
===ALTER===
Line 28: Line 31:
# Under '''4. Save converted MSA''' hit '''save…''' and then '''Okay'''
# Under '''4. Save converted MSA''' hit '''save…''' and then '''Okay'''
# Open the .nex file with a text editor
# Open the .nex file with a text editor
# On the sixth line down delete where it says <blockquote><code>match=.</code></blockquote>
# At the top of the file, change <blockquote><code>interleave datatype=NUCLEOTIDE gap=-;</code></blockquote> to <blockquote><code>interleave datatype=NUCLEOTIDE gap=-;<br>options gapmode=missing;</code></blockquote>
# Scroll to the bottom and paste the following<sup>[1]</sup> after <code>end;</code> :<blockquote><code>Begin paup;<br>set autoclose=yes;<br>set criterion=parsimony;<br>set root=outgroup;<br>set storebrlens=yes;<br>hsearch addseq=random nreps=1000 swap=tbr hold=1;<br>showtree;<br>End;</code></blockquote>
# Scroll to the bottom and change <blockquote><code>;<br>end;</code></blockquote>to the following<sup>[1]</sup>:<blockquote><code>;<br>endblock;<br><br>begin paup;<br>set autoclose=yes;<br>set criterion=parsimony;<br>set root=outgroup;<br>set storebrlens=yes;<br>hsearch addseq=random nreps=1000 swap=tbr hold=1;<br>showtree;<br>savetrees file=<font color=gray>yourfilename</font>.tree.nex format=altnex brlens=yes;<br>endblock;</code></blockquote>
# Save<br><br>
# Save<br><br>
NOTE: If you're doing this with multiple alignments, you'll have to refresh the ALTER page before working on a new .txt file.
NOTE: If you're doing this with multiple alignments, you'll have to refresh the ALTER page before working on a new .txt file.


==Trees==
==Trees==
===PAUP===
NOTE: [http://paup.csit.fsu.edu/downl.html PAUP] has a command-line interface. A .pdf user manual is available [http://paup.csit.fsu.edu/Paup_Doc_31.pdf here] and a .pdf command line reference manual is available [http://paup.scs.fsu.edu/Cmd_ref_v2.pdf here].
# Open PAUP
# Move the file(s) you intend to analyze into the same folder as the PAUP executable file
#* e.g. if PAUP is on the desktop, then move your .nex file(s) to the desktop, too
# Use the <code>cd</code> ("change directory") command to navigate to PAUP
#* e.g. <code>cd Desktop</code>
# Use the <code>execute</code> command to analyze your .nex file
#* e.g. <code>execute <font color=gray>yourfilename</font>.nex</code>
If PAUP generates more than one tree, <u>do not close the Terminal shell!</u> You need to generate a consensus tree. Enter the following:
<blockquote><code>contree all/majrule save file=<font color=gray>yourfilename</font>.consensus.nex;</code></blockquote>
This will give you both a majority rule consensus tree<sup>[2]</sup> and a strict consensus tree.<sup>[3]</sup>
===MacClade===
# Open MacClade
# Select the alignment file
#* e.g. <code><font color=gray>yourfilename</font>.nex</code>
# Click on the <b>Windows</b> menu
# Select <b>Tree Window</b>
# Select <b>Open Treefile&hellip;</b>
# Load your saved tree file
#* e.g. <code><font color=gray>yourfilename</font>.tree.nex</code>
===FigTree===
# Open FigTree
# Load your saved tree file
#* e.g. <code><font color=gray>yourfilename</font>.tree.nex</code>


==Notes==
==Notes==
'''[1]''' See https://lswiki.byu.edu/index.php/Life_Sciences_Wiki:Community_Portal.
#See https://lswiki.byu.edu/index.php/Life_Sciences_Wiki:Community_Portal.
#A majority rule consensus tree only shows branches which appear in at least 50% of the "rival" trees.
#A strict consensus tree only shows branches which appear in 100% of the "rival" trees.

Latest revision as of 14:27, 5 June 2012

Alignment

To start off, you need to perform an alignment of all your sequences. This can be done using MUSCLE. The output file (.txt) then needs to be converted to a .nex file, which can be done using ALTER.

MUSCLE

  1. Go to the MUSCLE website
  2. Paste your sequences in FASTA format with two returns between each one
    • To generate FASTA format from Strider, select File and then Export as…; when the new window pops up, set the Format bar to FASTA
  3. Set the output to "Pearson/FASTA"
  4. Do NOT change any of the other parameters
  5. Hit Submit
  6. When you have the alignment, click on the Result Summary tab
  7. Right click on the link beneath Alignments in FASTA format and select Save link as…
  8. Give the file the name that you want and then add the extension .txt

NOTE: At this point you can view your aligned sequences in MacClade.

ALTER

  1. Go to the ALTER website
  2. Under 1. Select format
    • Choose "MUSCLE" for program
    • Choose "FASTA" for format
  3. Under 2. Paste or Upload MSA hit upload…
  4. Navigate to the .txt file that you created using MUSCLE, select it, and hit open
  5. Under 3. Select output format and convert
    • Choose "PAUP" for program
    • Choose "NEXUS" for format
  6. Hit Convert!
  7. Under 4. Save converted MSA hit save… and then Okay
  8. Open the .nex file with a text editor
  9. At the top of the file, change

    interleave datatype=NUCLEOTIDE gap=-;

    to

    interleave datatype=NUCLEOTIDE gap=-;
    options gapmode=missing;

  10. Scroll to the bottom and change

    ;
    end;

    to the following[1]:

    ;
    endblock;

    begin paup;
    set autoclose=yes;
    set criterion=parsimony;
    set root=outgroup;
    set storebrlens=yes;
    hsearch addseq=random nreps=1000 swap=tbr hold=1;
    showtree;
    savetrees file=yourfilename.tree.nex format=altnex brlens=yes;
    endblock;

  11. Save

NOTE: If you're doing this with multiple alignments, you'll have to refresh the ALTER page before working on a new .txt file.

Trees

PAUP

NOTE: PAUP has a command-line interface. A .pdf user manual is available here and a .pdf command line reference manual is available here.

  1. Open PAUP
  2. Move the file(s) you intend to analyze into the same folder as the PAUP executable file
    • e.g. if PAUP is on the desktop, then move your .nex file(s) to the desktop, too
  3. Use the cd ("change directory") command to navigate to PAUP
    • e.g. cd Desktop
  4. Use the execute command to analyze your .nex file
    • e.g. execute yourfilename.nex

If PAUP generates more than one tree, do not close the Terminal shell! You need to generate a consensus tree. Enter the following:

contree all/majrule save file=yourfilename.consensus.nex;

This will give you both a majority rule consensus tree[2] and a strict consensus tree.[3]

MacClade

  1. Open MacClade
  2. Select the alignment file
    • e.g. yourfilename.nex
  3. Click on the Windows menu
  4. Select Tree Window
  5. Select Open Treefile…
  6. Load your saved tree file
    • e.g. yourfilename.tree.nex

FigTree

  1. Open FigTree
  2. Load your saved tree file
    • e.g. yourfilename.tree.nex

Notes

  1. See https://lswiki.byu.edu/index.php/Life_Sciences_Wiki:Community_Portal.
  2. A majority rule consensus tree only shows branches which appear in at least 50% of the "rival" trees.
  3. A strict consensus tree only shows branches which appear in 100% of the "rival" trees.