<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>小生这厢有礼了(BioFaceBook Personal Blog) &#187; TREE</title>
	<atom:link href="http://www.biofacebook.com/?feed=rss2&#038;tag=tree" rel="self" type="application/rss+xml" />
	<link>http://www.biofacebook.com</link>
	<description>记录生物信息学点滴足迹（NGS,Genome,Meta,Linux)</description>
	<lastBuildDate>Sun, 23 Aug 2020 03:28:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>MrBayes Tree</title>
		<link>http://www.biofacebook.com/?p=761</link>
		<comments>http://www.biofacebook.com/?p=761#comments</comments>
		<pubDate>Thu, 02 May 2013 08:25:11 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[生物信息]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[TREE]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=761</guid>
		<description><![CDATA[<p>Use clustalw to generate nexus format file</p> <p>#NEXUS BEGIN DATA; dimensions ntax=55 nchar=534; format missing=? symbols=&#8221;ABCDEFGHIKLMNPQRSTUVWXYZ&#8221; interleave datatype=DNA gap= -;</p> <p>Change to as follows: #NEXUS BEGIN DATA; dimensions ntax=55 nchar=534; format datatype=dna interleave=yes gap=- missing=?;</p> <p>then type mb -i *.nex</p> <p>MrBayes > lset nst=6 rates=invgamma</p> <p> Setting Nst to 6 Setting Rates to Invgamma Successfully [...]]]></description>
				<content:encoded><![CDATA[<p>Use clustalw to generate nexus format file</p>
<p>#NEXUS<br />
BEGIN DATA;<br />
dimensions ntax=55 nchar=534;<br />
format missing=?<br />
symbols=&#8221;ABCDEFGHIKLMNPQRSTUVWXYZ&#8221;<br />
interleave datatype=DNA gap= -;</p>
<p><strong>Change to as follows:</strong><br />
#NEXUS<br />
BEGIN DATA;<br />
dimensions ntax=55 nchar=534;<br />
format datatype=dna interleave=yes gap=- missing=?;</p>
<p><strong>then type mb -i *.nex</strong></p>
<p>MrBayes > lset nst=6 rates=invgamma</p>
<p>   Setting Nst to 6<br />
   Setting Rates to Invgamma<br />
   Successfully set likelihood model parameters</p>
<p>MrBayes > mcmc ngen=20000 samplefreq=100 printfreq=100 diagnfreq=1000</p>
<p>   Setting number of generations to 20000<br />
   Setting sample frequency to 100<br />
   Setting print frequency to 100<br />
   Setting diagnosing frequency to 1000<br />
   Running Markov chain<br />
   MCMC stamp = 4956565474<br />
   Seed = 1367482907<br />
   Swapseed = 1367482907<br />
   Model settings:</p>
<p>&#8230;&#8230;&#8230;<br />
MrBayes > sump<br />
Type sump to summarize the parameter values using the same burn-in as<br />
the diagnostics in the mcmc command. The program will output a table with<br />
summaries of the samples of the substitution model parameters, including the<br />
mean, mode, and 95 % credibility interval (region of Highest Posterior Density,<br />
HPD) of each parameter.</p>
<p>MrBayes > sumt<br />
The program will output a cladogram with the posterior<br />
probabilities for each split and a phylogram with mean branch lengths. Both<br />
trees will also be printed to a file that can be read by FigTree and other<br />
tree-drawing programs, such as TreeView and Mesquite.</p>
<p>Note:<br />
If the standard deviation of split frequencies is below 0.01 after 20,000<br />
generations, stop the run by answering no when the program asks Continue the<br />
analysis? (yes/no). Otherwise, keep adding generations until the value falls<br />
below 0.01. If you are interested mainly in the well-supported parts of the tree, a<br />
standard deviation below 0.05 may be adequate.</p>
<p>converting file formats<br />
Having the proper data file format is essential as many programs can only input certain file types. The following are some of the input and output file formats for specific programs.</p>
<p>CLUSTAL file format:<br />
Programs that input this file type: Clustal W/X<br />
Programs that output this file type: Clustal W/X</p>
<p>FASTA file format:<br />
Programs that input this file type: Clustal W/X, MAFFT<br />
Programs that output this file type: Clustal W/X, MAFFT</p>
<p>NEXUS file format:<br />
Programs that input this file type: BEAUti, GARLI, Modeltest, MrBayes, PAUP*<br />
Programs that output this file type: Clustal W/X, PAUP*</p>
<p>PHYLIP file format:<br />
Programs that input this file type: GARLI, LAMARC, Migrate-n, PAML, PHYLIP<br />
Programs that output this file type: Clustal W/X, PAUP*, PHYLIP</p>
<p>PIR file format:<br />
Programs that input this file type: Clustal W/X<br />
Programs that output this file type: Clustal W/X</p>
]]></content:encoded>
			<wfw:commentRss>http://www.biofacebook.com/?feed=rss2&#038;p=761</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo/InputtingTrees (R language)</title>
		<link>http://www.biofacebook.com/?p=167</link>
		<comments>http://www.biofacebook.com/?p=167#comments</comments>
		<pubDate>Tue, 15 May 2012 03:54:27 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[R语言]]></category>
		<category><![CDATA[生物信息]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[TREE]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=167</guid>
		<description><![CDATA[<p>http://www.r-phylo.org/wiki/HowTo/InputtingTrees</p> <p>The commands referenced below are all part of special phylogenetic packages in R, not the basic R install. Be sure that you have installed and loaded the packages containing the commands referenced below before continuing. For example:</p> library(ape) <p>This loads the package ape and its required packages, gee, nlme and lattice, into your R [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.r-phylo.org/wiki/HowTo/InputtingTrees">http://www.r-phylo.org/wiki/HowTo/InputtingTrees</a></p>
<p>The commands referenced below are all part of special phylogenetic packages in R, not the basic R install. Be sure that you have <a title="HowTo/GettingStarted" href="http://www.r-phylo.org/wiki/HowTo/GettingStarted">installed and loaded the packages</a> containing the commands referenced below before continuing. For example:</p>
<pre>  library(ape)</pre>
<p>This loads the package ape and its required packages, gee, nlme and lattice, into your R session.</p>
<p><strong>How do I input a phylogeny into R?</strong></p>
<p>Okay, so you&#8217;ve just completed a phylogenetic analysis or otherwise obtained a file containing a phylogeny, and you&#8217;d like to use that phylogeny as a framework for comparative analysis in R. R packages for phylogenetics may differ in how they represent phylogenies. The most commonly used is the &#8220;phylo&#8221; (more specifically, objects of class &#8220;phylo&#8221;). Luckily, converting your phylogeny to &#8220;phylo&#8221; representation is easy.</p>
<p>The package APE can read phylogenies in either Newick or NEXUS format using the read.tree and read.nexus commands, respectively. (Note: we assume you have already placed these input trees in your working directory, see <a title="HowTo/Basics" href="http://www.r-phylo.org/wiki/HowTo/Basics">the basics</a>)</p>
<pre>  MyTree &lt;- read.tree("MyNewickTreefile.tre")
  MyTree &lt;- read.nexus("MyNexusTreefile.nex")</pre>
<p>Either of these commands will create an identical object called &#8220;MyTree&#8221; in R containing your phylogeny. This object is in &#8220;phylo&#8221; representation and it can be input to various other functions in R.</p>
<p>If you have the <a title="Geospiza.nex" href="http://www.r-phylo.org/mediawiki/images/0/02/Geospiza.nex">sample Geospiza phylogeny</a> saved to your working directory, this command will load it into memory.</p>
<pre>  geotree &lt;- read.nexus("geospiza.nex")</pre>
<p>Note that when you construct the original Newick or NEXUS files you should avoid enclosing your taxon names within quotes or using blank space within taxon names. A taxon named Genus_species will work fine, one named &#8220;Genus species&#8221; will not. R and APE support the use of translation tables for taxon names in NEXUS format, but not in Newick format.</p>
<p><strong>How do I export a phylogeny out of R?</strong></p>
<p>APE can export phylogenies in phylo representation into either Newick or Nexus format using the write.tree and write.nexus commands, respectively.</p>
<pre>  write.tree(MyTree, file="MyNewickTreefile.tre")
  write.nexus(MyTree, file="MyNexusTreefile.nex")</pre>
<p><strong>What if I&#8217;m working with multiple trees?</strong></p>
<p>No problem! If the Newick or NEXUS file that you read into R contains multiple trees, an object called a list will be created. Each element of the list will be one individual tree from the original datafile.</p>
<p>You can also write multiple trees to a single file from R. If the trees are already in a list (perhaps one called MyTrees), the syntax is the same as above.</p>
<pre>  write.nexus(MyTrees, file="MyNexusTreefile.nex")</pre>
<p>If trees are not in a list but exist instead as separate objects, you can type them as sequential arguments in write.nexus.</p>
<pre>  write.nexus(MyTree1, MyTree2, MyTree3, file="MyNexusTreefile.nex")</pre>
<p>Write.tree currently accepts a only single tree as input.</p>
<p>However, be aware that many functions in R are designed to accept only a single tree as input, not a a list of trees. You can apply a single function to all the elements of a list sequentially using the lapply and sapply commands. For more information on the usage of lapply and sapply, type either of the following into the R command line.</p>
<pre>  help(lapply)
  help(sapply)</pre>
<p>&nbsp;</p>
<hr />
<ul>
<li>Also see <a href="http://bodegaphylo.wikispot.org/II._Tree_Basic" rel="nofollow">Rich Glor&#8217;s page from the Bodega Applied Phylogenetics Workshop</a></li>
</ul>
<p>Credit: Most of the information on this page is based on the book Analysis of Phylogenetics and Evolution with R (Paradis, 2006).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.biofacebook.com/?feed=rss2&#038;p=167</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
