<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Palaeontology 2.0</title>
	<atom:link href="http://matthewvavrek.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthewvavrek.com</link>
	<description>A dead science for an evolving world</description>
	<lastBuildDate>Sat, 20 Apr 2013 16:32:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='matthewvavrek.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Palaeontology 2.0</title>
		<link>http://matthewvavrek.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://matthewvavrek.com/osd.xml" title="Palaeontology 2.0" />
	<atom:link rel='hub' href='http://matthewvavrek.com/?pushpress=hub'/>
		<item>
		<title>TNT and Ubuntu</title>
		<link>http://matthewvavrek.com/2011/10/19/tnt-and-ubuntu/</link>
		<comments>http://matthewvavrek.com/2011/10/19/tnt-and-ubuntu/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 00:17:00 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[phylogenetics]]></category>
		<category><![CDATA[phylogeny]]></category>
		<category><![CDATA[TNT]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=167</guid>
		<description><![CDATA[TNT (or &#8216;Tree analysis using New Technology&#8217;) is a relatively fast parsimony-based phylogenetics program. However, to be quite frank, it is also totally confusing. It took me some time, but I have put together a script that does pretty much &#8230; <a href="http://matthewvavrek.com/2011/10/19/tnt-and-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=167&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.zmuc.dk/public/phylogeny/tnt/">TNT</a> (or &#8216;Tree analysis using New Technology&#8217;) is a relatively fast parsimony-based phylogenetics program. However, to be quite frank, it is also totally confusing. It took me some time, but I have put together a script that does pretty much everything I want it to do now, so I can just reuse the script every time I need to do something. I&#8217;m posting it here, in the hopes that other people will not have to spend so long figuring this all out. Just note though, the actual commands are in <span class="Apple-style-span" style="font-family:Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:12px;line-height:20px;">this type of font.</span>Of course, everything that follows is what I&#8217;ve figured out through reading papers and trawling the internet, so suggestions are appreciated.</p>
<p>First things first, make sure your data is in the correct format. Theoretically, TNT can handle .nex files, but then again, my old car could theoretically do 220 km/h because the speedometer went that high. Your best bet is to just take your .nex file and reformat it to .tnt format, which pretty much involves deleting everything except the actual matrix, and then editing the first few lines. The first line should read &#8216;xread&#8217;, with the next line containing the number of characters, a space, and the number of taxa. (You can add a line between those for a comment, just be sure to put the comment in quotes)</p>
<p>For example, a simple data set might look like this:</p>
<p><span class="Apple-style-span" style="font-family:Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:12px;line-height:20px;"><br />
xread<br />
&#8216;sample phylogeny&#8217;<br />
5 3<br />
taxonA 00011<br />
taxonB 01111<br />
taxonC 11111<br />
;<br />
</span></p>
<p>While TNT is not the most user-friendly program, using scripts can help a lot, as you often will run the same set of analyses on different data sets. For my purposes, most of the time I want to run a basic tree search to find all of the most parsimonious trees, find a consensus tree from that (if necessary), map the characters, get bootstrap values and finally find the Bremer supports. At the bottom of the page I&#8217;ve posted my default TNT script that I use. Note that it does include comments (lines with a # in front) that will need to be deleted for the script to run properly. Also, replace &#8216;samplephylo&#8217; with whatever you&#8217;ve named your .tnt file. Finally, when you&#8217;ve done all that, you need to move both the script and the .tnt file into the folder that contains all the files for the TNT program (on mine, the folder is called &#8216;tnt64-no-tax-limit&#8217;).</p>
<p>Finally, once you&#8217;ve done all that, you can run TNT (usually by navigating in a terminal to that same &#8216;tnt64-no-tax-limit&#8217; using the change directory command [i.e. cd]), and then running TNT by typing something like &#8216;sudo ./tnt&#8217;. Note that TNT typically doesn&#8217;t run properly unless you run it as root/administrator (same applies to Mac OS X, except you&#8217;d run it as &#8216;sudo ./tnt.command&#8217;).</p>
<p>Often, TNT will throw error messages for no apparent reason. A few things to make sure of is that all the file names are letters or numbers only (no punctuation, including periods or underscores, and no spaces), that both the command script and .tnt file are in the same folder as the TNT program and that the program is being run as root/administrator. Hopefully by putting this up here, more people will be able to finally figure out how to use TNT.</p>
<p><span class="Apple-style-span" style="font-family:Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:12px;line-height:20px;"><br />
#take everything after here and put it in a file in the tnt folder<br />
#delete all the lines that start with the # sign<br />
#replace the &#8216;samplephylo&#8217; with the name of your file. I recommend converting<br />
#your matrix to .tnt format, which is pretty simple<br />
#check out the example.tnt file in the tnt folder to see how it&#8217;s done<br />
#the most imprtant part is the first few lines,<br />
#but be sure to convert any polymorphisms to [] brackets<br />
#load the data file<br />
procedure samplephylo.tnt;<br />
#write all the output to this file<br />
log samplephylo.out;<br />
#do a basic run &#8211; finds a bunch of parsimonious trees quickly<br />
mult ;<br />
#this should find all the MPRs<br />
bbreak=tbr;<br />
#find the consensus tree<br />
nelsen * ;<br />
#map the synapomorphies on the tree<br />
apo [ ;<br />
#export the MPRs and the consensus tree to a file<br />
export samplephylo.tre;<br />
#do a bootstrap analysis &#8211; might need to up the runs<br />
resample ;<br />
#the stuff below does a Bremer analysis<br />
#it&#8217;s a bit convoluted, but is the only way to get<br />
#TNT to do a Bremer, because TNT isn&#8217;t really meant to<br />
#do a Bremer analysis<br />
hold 1000; sub 1 ; bbreak=tbr;<br />
hold 2000; sub 2 ; bbreak=tbr;<br />
hold 3000; sub 3 ; bbreak=tbr;<br />
hold 4000; sub 4 ; bbreak=tbr;<br />
hold 5000; sub 5 ; bbreak=tbr;<br />
hold 6000; sub 6 ; bbreak=tbr;<br />
hold 7000; sub 7 ; bbreak=tbr;<br />
hold 8000; sub 8 ; bbreak=tbr;<br />
#calculate the Bremer support from the suboptimal trees<br />
bsupport ;<br />
#quit the program &#8211; you can always do this manually<br />
quit<br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=167&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/10/19/tnt-and-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>MrBayes and Ubuntu</title>
		<link>http://matthewvavrek.com/2011/09/15/mrbayes-and-ubuntu/</link>
		<comments>http://matthewvavrek.com/2011/09/15/mrbayes-and-ubuntu/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 01:54:02 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[mrbayes]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=164</guid>
		<description><![CDATA[A quick tutorial on how to install MrBayes on an Ubuntu system. Step 1. Open Software Centre Step 2. Search for &#8216;mrbayes&#8217; and hit enter Step 3. Click &#8216;Install&#8217; Or, alternatively, open a terminal and type &#8216;sudo apt-get install mrbayes&#8217;. &#8230; <a href="http://matthewvavrek.com/2011/09/15/mrbayes-and-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=164&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A quick tutorial on how to install MrBayes on an Ubuntu system.</p>
<p>Step 1. Open Software Centre</p>
<p>Step 2. Search for &#8216;mrbayes&#8217; and hit enter</p>
<p>Step 3. Click &#8216;Install&#8217;</p>
<p>Or, alternatively, open a terminal and type &#8216;sudo apt-get install mrbayes&#8217;. And to run MrBayes, open up a terminal and type &#8216;mb&#8217;. That&#8217;s it. I just spent 15 minutes downloading and compiling the software from source, when it was already done for me. Oh well.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=164&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/09/15/mrbayes-and-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>pdflatex errors and R</title>
		<link>http://matthewvavrek.com/2011/07/15/pdflatex-errors-and-r/</link>
		<comments>http://matthewvavrek.com/2011/07/15/pdflatex-errors-and-r/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 18:47:03 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=158</guid>
		<description><![CDATA[I was getting an error checking packages in R on an Ubuntu 10.10 machine using the &#8216;R CMD check&#8217; command saying: LaTeX errors when creating PDF version. This typically indicates Rd problems. I have no idea what R&#8217;s problem with pdflatex &#8230; <a href="http://matthewvavrek.com/2011/07/15/pdflatex-errors-and-r/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=158&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was getting an error checking packages in R on an Ubuntu 10.10 machine using the &#8216;R CMD check&#8217; command saying:</p>
<p>LaTeX errors when creating PDF version. This typically indicates Rd problems.</p>
<p>I have no idea what R&#8217;s problem with pdflatex was (I&#8217;ve been using pdflatex for writing papers just fine) but once I installed the texlive-full package (a metapackage that installed all sorts of other packages) the check ran without any errors. If in doubt, this package seems to install everything that might be missing (along with the kitchen sink).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=158&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/07/15/pdflatex-errors-and-r/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>ape and geiger in R</title>
		<link>http://matthewvavrek.com/2011/05/11/ape-and-geiger-in-r/</link>
		<comments>http://matthewvavrek.com/2011/05/11/ape-and-geiger-in-r/#comments</comments>
		<pubDate>Wed, 11 May 2011 05:24:53 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=154</guid>
		<description><![CDATA[Just a quick tip if you want to use the geiger package in R on an Ubuntu system, there are a few things you need to make sure you do. First, make sure you&#8217;ve installed the gfortran package and lapack-dev &#8230; <a href="http://matthewvavrek.com/2011/05/11/ape-and-geiger-in-r/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=154&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Just a quick tip if you want to use the geiger package in R on an Ubuntu system, there are a few things you need to make sure you do. First, make sure you&#8217;ve installed the gfortran package and lapack-dev package in order to build the source packages. As well, you may need to reinstall the r-base package after you&#8217;ve done this. I was getting an error message like this:</p>
<p><span style="color:#888888;">/usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv</span></p>
<p>It seemed to go away after I reinstalled r-base and restarted the R session, although I&#8217;m not sure I needed to do both. Either way, it works now.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=154&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/05/11/ape-and-geiger-in-r/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>64-bit MrBayes</title>
		<link>http://matthewvavrek.com/2011/04/12/64-bit-mrbayes/</link>
		<comments>http://matthewvavrek.com/2011/04/12/64-bit-mrbayes/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 21:49:32 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[mrbayes]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=147</guid>
		<description><![CDATA[Just a quick note: if you&#8217;re running a 64-bit install of MrBayes in parallel, you will probably need to use this page to apply some patches to the source code: http://technical.bestgrid.org/index.php/Bioinformatics_applications_at_University_of_Canterbury_HPC#Installing_MrBayes I was having problems getting MrBayes to work on &#8230; <a href="http://matthewvavrek.com/2011/04/12/64-bit-mrbayes/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=147&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Just a quick note: if you&#8217;re running a 64-bit install of <a title="MrBayes and multicore processors" href="http://matthewvavrek.com/2011/03/19/mrbayes-and-multicore-processors/">MrBayes in parallel</a>, you will probably need to use this page to apply some patches to the source code:</p>
<p><a href="http://technical.bestgrid.org/index.php/Bioinformatics_applications_at_University_of_Canterbury_HPC#Installing_MrBayes">http://technical.bestgrid.org/index.php/Bioinformatics_applications_at_University_of_Canterbury_HPC#Installing_MrBayes</a></p>
<p>I was having problems getting MrBayes to work on a workstation running 64-bit Ubuntu, but once I started fresh and first applied those patches, things seemed to work without throwing a &#8216;segmentation fault&#8217; error during the &#8216;sump&#8217; function.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=147&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/04/12/64-bit-mrbayes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>R and fossils</title>
		<link>http://matthewvavrek.com/2011/04/09/r-and-fossils/</link>
		<comments>http://matthewvavrek.com/2011/04/09/r-and-fossils/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 05:23:26 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[palaeontologia electronica]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=135</guid>
		<description><![CDATA[I recently had a paper that was published in Palaeontologia Electronica on my &#8216;fossil&#8217; package for R. The journal is open access, so anyone can read it for free. Vavrek, Matthew J. 2011. fossil: palaeoecological and palaeogeographical analysis tools. Palaeontologia &#8230; <a href="http://matthewvavrek.com/2011/04/09/r-and-fossils/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=135&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I recently had a paper that was published in <a href="http://palaeo-electronica.org/index.html">Palaeontologia Electronica</a> on my <a href="http://cran.r-project.org/web/packages/fossil/index.html">&#8216;fossil&#8217; package</a> for R. The journal is open access, so anyone can read it for free.</p>
<p>Vavrek, Matthew J. 2011. fossil: palaeoecological and palaeogeographical analysis tools. Palaeontologia Electronica, 14:1T. <a href="http://palaeo-electronica.org/2011_1/238/index.html">http://palaeo-electronica.org/2011_1/238/index.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=135&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/04/09/r-and-fossils/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>MrBayes and multicore processors</title>
		<link>http://matthewvavrek.com/2011/03/19/mrbayes-and-multicore-processors/</link>
		<comments>http://matthewvavrek.com/2011/03/19/mrbayes-and-multicore-processors/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 04:46:15 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[mrbayes]]></category>
		<category><![CDATA[parallel]]></category>
		<category><![CDATA[phylogeny]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=132</guid>
		<description><![CDATA[Turns out setting up and using MrBayes on an Ubuntu system is much easier than I had thought. If all you want is the normal (serial) version of MrBayes, you can just download it from the repositories. However, if you &#8230; <a href="http://matthewvavrek.com/2011/03/19/mrbayes-and-multicore-processors/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=132&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Turns out setting up and using <a href="http://mrbayes.csit.fsu.edu/">MrBayes</a> on an Ubuntu system is much easier than I had thought. If all you want is the normal (serial) version of MrBayes, you can just download it from the repositories. However, if you want a serious speed up in the time it takes to get a good result, you can also run it in parallel on a multicore system (that is, pretty much any computer made in the last 4 years). To get it set up and running on Linux, I used some information I found in a <a href="http://ubuntuforums.org/archive/index.php/t-633411.html">forum post</a>. To recap from there:</p>
<ol>
<li>Install the parallel libraries you need from the repositories. The package names I used were: mpich2, libmpich2-dev, and libmpich2-1.2, and libreadline6-dev.</li>
<li>Download the <a href="http://mrbayes.csit.fsu.edu/download.php">source code file</a> for MrBayes and unarchive it (on Ubuntu you can just right-click and select &#8216;Extract Here&#8217;</li>
<li>Find the &#8216;Makefile&#8217; in the source code and change the line that says &#8216;MPI ?= no&#8217; so that it says &#8216;MPI = yes&#8217;</li>
<li>Open a terminal, and navigate to the MrBayes folder (e.g. type in &#8216;cd /path/to/folder/mrbayes-3.1.2/&#8217;) and then make the package (type &#8216;Make&#8217; at the prompt).  It might also be a good idea to change the file called &#8216;mb&#8217; that is created to something like &#8217;mbpar&#8217; so that you know it&#8217;s the parallel version. Also, I needed to make the file executable, so I typed &#8216;chmod +x mbpar&#8217;  to do that.</li>
<li>Now, you&#8217;ll need to create a file in your home folder called &#8216;.mpd.conf&#8217; with the line MPD_SECRETWORD=&lt;secretword&gt; in it. Change the &lt;secretword&gt; to something else though; it can be pretty much any word you like.</li>
<li>&#8216;mpd &amp;&#8217; will launch the MPICH daemon, which needs to be running in order to handle communicating between the different cores.</li>
<li>After all this, I was able to type &#8216;mpirun -np 2 /path/to/mrbayes/mbpar&#8217; to run the parallel version of MrBayes in parallel on both cores of my dual core system. If you have more cores, you can always change the -np argument (e.g. to run it using 4 cores, type &#8216;mpirun -np 4 /path/to/mrbayes/mbpar&#8217;)</li>
</ol>
<p><span style="font-size:14px;line-height:23px;">With the few tests I&#8217;ve done so far, I&#8217;ve seen about a 80% speed up by just using 2 cores instead of 1. It&#8217;s nice not to have to wait nearly so long to get my results. We&#8217;ll see what kind of time savings this could bring if I did it on an 8-core computer.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=132&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/03/19/mrbayes-and-multicore-processors/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>BiBTeX and the Canadian Journal of Earth Sciences</title>
		<link>http://matthewvavrek.com/2011/03/11/bibtex-and-the-canadian-journal-of-earth-sciences/</link>
		<comments>http://matthewvavrek.com/2011/03/11/bibtex-and-the-canadian-journal-of-earth-sciences/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 18:49:32 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bibliography]]></category>
		<category><![CDATA[cjes]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=128</guid>
		<description><![CDATA[While prepping a manuscript for the Canadian Journal of Earth Sciences, I needed a BiBTeX (.bst) style file that I could use to format my references properly if I wanted to use BiBTeX and LaTeX to write the manuscript. CJES &#8230; <a href="http://matthewvavrek.com/2011/03/11/bibtex-and-the-canadian-journal-of-earth-sciences/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=128&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>While prepping a manuscript for the Canadian Journal of Earth Sciences, I needed a BiBTeX (.bst) style file that I could use to format my references properly if I wanted to use BiBTeX and LaTeX to write the manuscript. CJES does alow you to submit LaTeX (.tex) files, however I couldn&#8217;t find a reference style file online. Instead, I used the <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/custom-bib/">custom-bib</a> package to create a custom file that matched up with the CJES reference format. In order to hopefully save others from extra work, I&#8217;ve posted the resulting file <a href="http://dl.dropbox.com/u/387332/cjes.bst">here</a> for anyone to use. Be forewarned though, some of the more awkward types of references may not be exactly as they should be, and for the final submission I think you may need to copy the bibliography and paste it directly in the LaTeX file you submit.</p>
<p>Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=128&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/03/11/bibtex-and-the-canadian-journal-of-earth-sciences/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>philosophiae doctor</title>
		<link>http://matthewvavrek.com/2011/03/10/philosophiae-doctor/</link>
		<comments>http://matthewvavrek.com/2011/03/10/philosophiae-doctor/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 20:00:57 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=125</guid>
		<description><![CDATA[I have officially received my PhD from McGill University, and can now identify myself as Dr. Vavrek, although I still keep on filling out forms and checking off the &#8216;Mr.&#8217; box. Along with that, I&#8217;ve managed to get hired on &#8230; <a href="http://matthewvavrek.com/2011/03/10/philosophiae-doctor/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=125&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have officially received my PhD from McGill University, and can now identify myself as Dr. Vavrek, although I still keep on filling out forms and checking off the &#8216;Mr.&#8217; box. Along with that, I&#8217;ve managed to get hired on at the Royal Ontario Museum as an Assistant Curator, though the contract is only for a year and a half. I&#8217;ll be at the ROM helping to set up a big new exhibit that&#8217;s set to open in the summer of 2012. Big things happening!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=125&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2011/03/10/philosophiae-doctor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
		<item>
		<title>Parallelized functions in R</title>
		<link>http://matthewvavrek.com/2010/10/28/parallelized-functions-in-r/</link>
		<comments>http://matthewvavrek.com/2010/10/28/parallelized-functions-in-r/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 03:15:20 +0000</pubDate>
		<dc:creator>mvavrek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CRAN]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://matthewvavrek.com/?p=120</guid>
		<description><![CDATA[I have released a new package on CRAN called &#8216;parfossil&#8216; where I have been experimenting with a number of parallelized functions. While R is a readily accessible and fast-to-code language when it comes to stats, it can be really slow &#8230; <a href="http://matthewvavrek.com/2010/10/28/parallelized-functions-in-r/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=120&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have released a new package on <a href="http://cran.r-project.org/">CRAN</a> called &#8216;<a href="http://cran.r-project.org/web/packages/parfossil/">parfossil</a>&#8216; where I have been experimenting with a number of parallelized functions. While R is a readily accessible and fast-to-code language when it comes to stats, it can be really slow when it comes to large analyses, especially on non-desktop computers. However, for my research most of the analysis time is spent in repetitive loops, like Monte Carlo or bootstrap analysis. Currently, R runs everything in serial, with each permutation in a resampling analysis done one after another. This was the only way when most machines only had one core, but with the proliferation of multicore chips even on laptops, this means we are only using a portion of our computer&#8217;s power when we run an analysis. With multicore chips we can assign different tasks to different cores, but this is often a difficult thing to code for. Luckily <a href="http://www.revolutionanalytics.com/">Revolution Analytics</a> has made available a simple to use package called &#8216;<a href="http://cran.r-project.org/web/packages/foreach/">foreach</a>&#8216; with an included function of the same name that makes the process of parallelization much easier. So far, with the functions I have recoded to run in parallel, I am seeing a speed up of 1.5 to 1.8 times just on my dual core laptop. I would imagine that using a quad core chip would see somewhere above a 3 times speedup; that could mean several hours to even days less of waiting in some cases for some really large data sets. And over the next few years most computer chips will have even more cores available to them. The future of R computing is in parallel.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matthewvavrek.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matthewvavrek.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matthewvavrek.com&#038;blog=6994774&#038;post=120&#038;subd=matthewvavrek&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://matthewvavrek.com/2010/10/28/parallelized-functions-in-r/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/44ebd3ad751e943f76607bec81a23eb8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matthew</media:title>
		</media:content>
	</item>
	</channel>
</rss>
