<?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>That's Funny... &#187; science</title>
	<atom:link href="http://staff.washington.edu/rec3141/wordpress/archives/tag/science/feed" rel="self" type="application/rss+xml" />
	<link>http://staff.washington.edu/rec3141</link>
	<description>the website of Eric Collins, grad student</description>
	<lastBuildDate>Wed, 11 Nov 2009 18:25:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enrichment of microorganisms into sea ice brine</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/578</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/578#comments</comments>
		<pubDate>Tue, 21 Jul 2009 01:52:06 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[bacteria]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[sea ice]]></category>
		<category><![CDATA[viruses]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=578</guid>
		<description><![CDATA[As seawater freezes into sea ice, all of the dissolved constituents of the water become concentrated within the solid ice matrix that forms. Because it is more dense than seawater due to the high salt content, a lot of this &#8216;brine&#8217; will drain from the ice by gravity. However, some brine remains in the ice [...]]]></description>
			<content:encoded><![CDATA[<p>As seawater freezes into sea ice, all of the dissolved constituents of the water become concentrated within the solid ice matrix that forms. Because it is more dense than seawater due to the high salt content, a lot of this &#8216;brine&#8217; will drain from the ice by gravity. However, some brine remains in the ice down to −55°C, the eutectic point of seawater, at which point the ice transitions to a complete solid with no liquid fraction. Between the freezing point of seawater (about −2°C) and the eutectic, there will be brine with a salinity dependent on the temperature of the ice, up to about 8 times that salinity of seawater. But it&#8217;s not just salts that are concentrated, but also nutrients, particles, and microorganisms living within the seawater, including viruses and bacteria. A former student in the lab, <a href="http://oceanexplorer.noaa.gov/explorations/02arctic/background/explorers/explorers.html#Anchor-Llyd-33261">Dr. Llyd Wells</a>, discussed the consequences of this concentration effect in detail in a 2006 paper in Environmental Microbiology: &#8220;<a href="http://dx.doi.org/10.1111/j.1462-2920.2006.00984.x">Modelled and measured dynamics of viruses in Arctic winter sea-ice brines</a>&#8220;. In this paper he used a mathematical model to predict contact rates between bacteria and viruses as a function of temperature in sea ice brine, showing that &#8220;virus-bacteria contact rates in underlying −1°C seawater were &#8230; up to 600 times lower than those in ice brines at or below −24°C.&#8221; Two contrasting factors affected the relative contact rates. First, the brine concentrating effect described above, which increases contact rates by increasing the concentrations of viruses and bacteria in the ice. Second, the diffusivity decreases as a factor of increasing viscosity at lower temperatures, which decreases the contact rates. In the figure shown below, Llyd shows that the result of these contrasting effects is overall a positive one, with very high potential contact rates occurring in the upper, colder sea ice.</p>
<a href="http://www3.interscience.wiley.com/cgi-bin/fulltext/118567424/nf1"><img src="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/07/nf1.gif" alt="sea ice diffusivity, wells and deming 2006" title="nf1" width="500" height="458" class="size-full wp-image-584" /></a>
<p>The equations used were as follows:</p>
<p><img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/f0c2b41b5f171bdf9fc3415d6cc2b93d_2.49998pt.png' title='J  =  2\pi dD_vVB' alt='J  =  2\pi dD_vVB'  style="vertical-align:-2.49998pt;" ></p>
<p>where J = contact rate, &#8220;d is the spherical diameter of the average cell (cm), D<sub>v</sub> the viral diffusivity (cm<sup>2</sup> s<sup>-1</sup>), and V and B the [in situ] concentrations of viruses and bacteria respectively (ml<sup>-1</sup> [brine or seawater]).&#8221;</p>
<p><img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/eb1bb61e231ca83c18836dd80e36272f_9.80396pt.png' title='D_v  =  \dfrac{kT}{3\pi \mu dv}' alt='D_v  =  \dfrac{kT}{3\pi \mu dv}'  style="vertical-align:-9.80396pt;" ></p>
<p>&#8220;where k is Boltzmann&#8217;s constant, T the temperature (Kelvin), <img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/c9faf6ead2cd2c2187bd943488de1d0a_2.94444pt.png' title='\mu' alt='\mu'  style="vertical-align:-2.94444pt;" > the viscosity (g cm<sup>-1</sup> s<sup>-1</sup>), and dv the spherical diameter of the average virus (cm)&#8221;. D<sub>v</sub> can be estimated with the following equation (determined empirically from Figure 1) where t is temperature (°C).</p>
<p><img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/e83ec42d8fdb490a7062b8265dbec249_2.49998pt.png' title='D_v = 40.5882 \times 10^{-9} \times 10^{0.0325t}' alt='D_v = 40.5882 \times 10^{-9} \times 10^{0.0325t}'  style="vertical-align:-2.49998pt;" ></p>
<p>The authors provide the following values for constants:</p>
<p><img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/c24604ace1228d6fd46ef679608701a7_22.7pt.png' title='\begin{tabular}{ccc} constant &amp; value &amp; units\\\hline k &amp; 1.38 \times 10^{-16}&amp; g cm^2 K^{-1} s^{-2}\\ d &amp; 0.5 \times 10^{-4}&amp; cm\\ dv &amp; 60 \times 10^{-7} &amp; cm\\ \end{tabular}' alt='\begin{tabular}{ccc} constant &amp; value &amp; units\\\hline k &amp; 1.38 \times 10^{-16}&amp; g cm^2 K^{-1} s^{-2}\\ d &amp; 0.5 \times 10^{-4}&amp; cm\\ dv &amp; 60 \times 10^{-7} &amp; cm\\ \end{tabular}'  style="vertical-align:-22.7pt;" ></p>
<p>but they don&#8217;t provide for the calculation of <img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/c9faf6ead2cd2c2187bd943488de1d0a_2.94444pt.png' title='\mu' alt='\mu'  style="vertical-align:-2.94444pt;" >, the viscosity in the ice, referring to a 1975 paper by George Cox (which references a 1960 paper by Dale Kaufmann [which itself references a 1929 paper by Stakelbeck and Plank]).</p>
<p>The following multiple linear equation can be used to estimate the viscosity (in centipoise = 0.01 * g cm<sup>-1</sup> s<super>-1</super>) as a function of temperature (T) and brine salinty (S) in the ice, but it is not very good:<br />
<img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/7817a79f11b277f8f573a8eb90470ad3_2.94444pt.png' title='\mu = -0.0835419T + 0.0066835S+1.7724989' alt='\mu = -0.0835419T + 0.0066835S+1.7724989'  style="vertical-align:-2.94444pt;" ></p>
<p>[The <a href='http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/07/temp-salt-visc.csv'>raw data</a> and <a href='http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/07/temp-salt-viscosity.R'>R script to calculate the multiple linear regression</a> are available here]</p>
<p>A better empirical equation was determined using <a href="http://zunzun.com">ZunZun.com</a>, an amazingly useful site for curve fitting. I used the Function Finder, which identified a <a href='http://zunzun.com/Equation/3/Polynomial/User-Selectable%20Reciprocal%20Polynomial/'>Reciprocal Polynomial</a> as the best available curve. The simplified equation for that curve is (mu in centipoise=  0.01 * g cm<sup>-1</sup> s<sup>-1</sup>):<br />
<img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/3438c5d9c9d2ab648d5800c3331113a9_8.69284pt.png' title='\mu = \dfrac{1}{0.62 + 0.020T + 0.00014T^2 -0.0012S -0.000030ST}' alt='\mu = \dfrac{1}{0.62 + 0.020T + 0.00014T^2 -0.0012S -0.000030ST}'  style="vertical-align:-8.69284pt;" ></p>
<p><a href="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/07/T-S-viscosity.png"><img src="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/07/T-S-viscosity-300x225.png" alt="T-S-viscosity" title="T-S-viscosity" width="300" height="225" class="size-medium wp-image-634" /></a></p>
<p>Finally, to calculate the relative contact rates between seawater and sea ice, given concentrations of bacteria and viruses (per volume brine or seawater):<br />
<img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/afd500c9a0b2ee2c989c65fae3a1c8fa_9.3595pt.png' title='\dfrac{J_i}{J_w}  =  \dfrac{D_{vi}}{D_{vw}} \times \dfrac{B_i}{B_w} \times \dfrac{V_i}{V_w}' alt='\dfrac{J_i}{J_w}  =  \dfrac{D_{vi}}{D_{vw}} \times \dfrac{B_i}{B_w} \times \dfrac{V_i}{V_w}'  style="vertical-align:-9.3595pt;" ></p>
<p>which can be generalized to:<br />
<img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/68509619cc210bad4ddd603406d0628f_9.3595pt.png' title='\dfrac{J_i}{J_w}  =  \dfrac{D_{vi}}{D_{vw}} \times \dfrac{f_B}{V_{br}} \times \dfrac{f_V}{V_{br}}' alt='\dfrac{J_i}{J_w}  =  \dfrac{D_{vi}}{D_{vw}} \times \dfrac{f_B}{V_{br}} \times \dfrac{f_V}{V_{br}}'  style="vertical-align:-9.3595pt;" ></p>
<p>where V<sub>br</sub> is the brine volume fraction (<a href="http://staff.washington.edu/rec3141/research/webapps/brine">calculator available here</a>), &#8220;the subscripts i and w indicate sea ice and water column respectively. The terms f<sub>B</sub> and f<sub>V</sub> represent the fraction of bacteria and viruses retained in the brine and serve as a correction to account for possible partitioning within the solid phase &#8230; as well as for two major mechanisms of loss: destruction due to impinging ice crystals or osmotic stress and release with rejected brine.</p>
<p>If passive entrainment into the ice (proportional to salts) is expected for both viruses and bacteria, then <img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/a2880ac6de15245197006deeb7039f99_9.3595pt.png' title='f_B = f_V = \dfrac{S_i}{S_w}' alt='f_B = f_V = \dfrac{S_i}{S_w}'  style="vertical-align:-9.3595pt;" >, where S is the bulk salinity of the ice or water.</p>
<p>If active entrainment into the ice is expected (complete/active concentration of bacteria and viruses into ice), then <img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/a999f3a96aa13414feb3841ae5a268aa_2.94444pt.png' title='f_B = f_V =  1' alt='f_B = f_V =  1'  style="vertical-align:-2.94444pt;" ></p>
<p>If the concentration of bacteria (or viruses) in the ice is 0 then f<sub>B</sub> = 0.</p>
<p>Another enrichment index has been used by others, including Riedel (2006), originally from Gradinger and Ikalvko (1998). Their index (I<sub>s</sub>) is 0 when the concentration in ice is 0 (I<sub>s</sub> = 0 when C<sub>i</sub> = 0) and is 1 when the concentration in ice is proportional to the salt retained in the ice (I<sub>s</sub> = 0 when C<sub>i</sub>/C<sub>w</sub> =S<sub>i</sub>/S<sub>w</sub>).</p>
<p><img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/de74b46017320d7a6b69f2f6b0faf416_9.3595pt.png' title='I_s = \dfrac{C_i}{C_w} \dfrac{S_w}{S_i}' alt='I_s = \dfrac{C_i}{C_w} \dfrac{S_w}{S_i}'  style="vertical-align:-9.3595pt;" ></p>
<p>A third index can be created such that at a value of 0 indicates passive enrichment and a value of 1 indicates complete/active enrichment. A value less than zero indicates loss or mortality in the ice (-1 indicates an in situ concentration of 0). Any value greater than 1 indicates production or growth within the ice. </p>
<p><img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/c0ddd16a6631ab90c257f82f00ca0c57_21.85782pt.png' title='E = \dfrac{\dfrac{C_i}{C_w}-\dfrac{S_i}{S_w}}{1-\dfrac{S_i}{S_w}}' alt='E = \dfrac{\dfrac{C_i}{C_w}-\dfrac{S_i}{S_w}}{1-\dfrac{S_i}{S_w}}'  style="vertical-align:-21.85782pt;" ></p>
<div id="attachment_630" class="wp-caption aligncenter" style="width: 553px"><a href="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/07/temp-sal-bcf.png"><img src="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/07/temp-sal-bcf.png" alt="temperature bulk salinity brine concentrating factor" title="temp-sal-bcf" width="543" height="502" class="size-full wp-image-630" /></a><p class="wp-caption-text">temperature bulk salinity brine concentrating factor</p></div>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/578/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Predicting the height of a saturated peak on an electropherogram</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/527</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/527#comments</comments>
		<pubDate>Thu, 07 May 2009 01:12:08 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[bacteria]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open access]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sea ice]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=527</guid>
		<description><![CDATA[One way to assess the microbial community structure in an environment is to use a &#8216;fingerprinting&#8217; technique, like T-RFLP or ARISA, to interrogate the &#8217;species&#8217; living there as determined from their 16S rRNA genes or some functional gene like amoA. Here&#8217;s an example of a T-RFLP electropherogram from sea ice:

You can see that most of [...]]]></description>
			<content:encoded><![CDATA[<p>One way to assess the microbial community structure in an environment is to use a &#8216;fingerprinting&#8217; technique, like T-RFLP or ARISA, to interrogate the &#8217;species&#8217; living there as determined from their 16S rRNA genes or some functional gene like amoA. Here&#8217;s an example of a T-RFLP electropherogram from sea ice:<br />
<a href="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/05/examplecsv0.png"><img src="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/05/examplecsv0.png" alt="examplecsv0" title="examplecsv0" width="480" height="480" class="size-full wp-image-548" /></a></p>
<p>You can see that most of the signal in this sample is contained within a few peaks. Sometimes those peaks saturate (max-out, overblow) the detector, which is bad if I am interested in comparing the heights of the peaks (a controversial subject, I should note I am only doing bulk, not individual, comparisons). Of course, I could just add less DNA and run it again, except that then I would be liable to lose some of the smaller peaks (also, it&#8217;s not practical for me to re-run these specific samples). So I&#8217;ve written a script in the open-source <a href="http://www.r-project.org">statistical package R</a> to estimate the heights of the saturated peaks by fitting a Gaussian function of the form</p>
<p><img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/c29244c515375b57599c5786bb562c8d_7.85951pt.png' title='f(x) = y_0+\dfrac{b\sqrt{2/\pi}}{d}*e^{-2\left(\dfrac{x-x_0}{d}\right)^2}' alt='f(x) = y_0+\dfrac{b\sqrt{2/\pi}}{d}*e^{-2\left(\dfrac{x-x_0}{d}\right)^2}'  style="vertical-align:-7.85951pt;" ></p>
<p>where &#8216;y_0&#8242; is the y-minimum, &#8216;x_0&#8242; is the center of the peak, &#8216;b&#8217; is a scaling factor, and &#8216;d&#8217; is related to the standard deviation of the distribution.</p>
<p>You can download the script here: <a href='http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/05/gaussfit.r'>gaussfit.r</a></p>
<p>The figures below show (A) a fitted regular-sized peak, and (B) a fitted saturated peak. In my case, the fitted function has a maximum that is 1.6 ± 2.5% of the observed maximum for regular-sized peaks.</p>
<p><img src="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/05/examplecsv1.png" alt="examplecsv1" title="examplecsv1" width="320" height="320" class="size-full wp-image-541" /></a><a href="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/05/examplecsv2.png"><img src="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2009/05/examplecsv2.png" alt="examplecsv2" title="examplecsv2" width="320" height="320" class="size-full wp-image-542" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/527/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Bazaar version control system for my Ph.D. Thesis</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/513</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/513#comments</comments>
		<pubDate>Thu, 30 Apr 2009 21:58:15 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=513</guid>
		<description><![CDATA[I wrote my last paper in LaTeX and the submitted file was named &#8216;paper_v26&#8242;. Various other files with similar names are floating around and it is a chore to keep up with which is the latest version when they are split between two computers and three operating systems.  For my thesis I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote my last paper in LaTeX and the submitted file was named &#8216;paper_v26&#8242;. Various other files with similar names are floating around and it is a chore to keep up with which is the latest version when they are split between two computers and three operating systems.  For my thesis I decided to make things easier. I tried using subversion. I really did. But it just wasn&#8217;t doing it for me. So I tried Bazaar and got it to work intuitively in just a few minutes. So that&#8217;s what I&#8217;m going to start using now. To help get you (and me) started, here&#8217;s a distilled version of <a href="http://doc.bazaar-vcs.org/latest/en/mini-tutorial/index.html">this tutorial</a> and <a href="http://doc.bazaar-vcs.org/latest/en/user-guide/index.html">this user guide</a>). Requirements for my setup: 1) unfrightened by the command line; 2) SSH daemon running on central repository host.</p>
<p>Briefly, the way it works is that you set up a central repository for your files, preferably on some computer that is connected to the internet all the time, even better if it has a static domain name. Into this repository you place the files you want to be version controlled. This works best for plain text files (like LaTeX source files) because it is simple to compare versions if necessary, but it will also work for binary files like OpenOffice documents (which have built-in version control, if you didn&#8217;t know) and images. If you are working on the computer with the central repository, great, just make sure to update the files each time before you work on them and commit them each time you are done. You could probably write a cron job to do this for you if you are liable to forget. If you are working on a different computer, you just have to ask the central repository for the files and it will give you the latest versions. After you edit them you have to commit the changes to a local repository, which can then be merged with the central repository.</p>
<p>To get started:</p>
<ul>
<li>Install <a href="http://bazaar-vcs.org/">bzr</a></li>
<li>Make a new directory and copy the files you&#8217;ll be starting with into it. If you&#8217;re using LaTeX, you&#8217;ll probably only want the files that are not compiled, e.g. *.tex, *.bib, *.bst and NOT *.aux, *.log, etc.</li>
<li>Tell bzr who you are:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr whoami &quot;me &lt;me@me.com&gt;&quot;</div></div>
</li>
<li>Initialize tracking in this directory:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr init</div></div>
</li>
<li>Add all the files in the directory, recursively:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr add</div></div>
</li>
<li>Commit the files to the first revision. Make sure to add a message (-m), or you might find yourself in &#8216;vi&#8217; (shudder). Do this after every work session.
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr commit -m &quot;very important message&quot;</div></div>
</li>
<li>Next time you work from this computer with the central repository, make sure you are using the most recent version:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr update</div></div>
<li>The first time you work on your project from a different computer, pull a new copy via ssh from that computer:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr branch sftp://user@host.domain:port/location/to/remote/files /new/local/location</div></div>
</li>
<li>In future sessions, pull new edits from the central repository before working on them:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr merge sftp://user@host.domain:port/location/to/remote/files<br />
bzr commit -m &quot;merge from parent&quot;</div></div>
</li>
<li>To submit edits to the central repository, first commit them locally, then push edits via ssh to that computer:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr commit -m &quot;local changes&quot;<br />
bzr push sftp://user@host.domain:port/location/to/remote/files</div></div>
</li>
</ul>
<p>Some further usage, much of which is intuitive because it works just like regular unix commands:</p>
<ul>
<li>Clean up a directory by deleting non-versioned files and reloading the last commit:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr commit<br />
&nbsp;rm *<br />
bzr revert</div></div>
</li>
<li>Make a new versioned subdirectory:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr mkdir ./newdirectory</div></div>
</li>
<li>Add a new file to the repository:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr add ./newfile.txt</div></div>
</li>
<li>Remove a file from the repository:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr rm ./oldfile.txt</div></div>
</li>
<li>Rename or move a file or directory in the repository:
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bzr mv oldfile.txt newfile.txt</div></div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/513/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ARB install on Kubuntu 8.10</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/439</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/439#comments</comments>
		<pubDate>Mon, 26 Jan 2009 18:00:19 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[phylogeny]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=439</guid>
		<description><![CDATA[I added the following lines to my &#8216;/etc/apt/sources.list&#8217;
deb http://techno.mikro.biologie.tu-muenchen.de/debian intrepid non-free
deb http://techno.mikro.biologie.tu-muenchen.de/debian hardy non-free
and installed the packages arb (base installation), transfig (something to do with LaTeX), xfig (for exporting trees), and libmotif3 (for library libXm.so.3)
sudo apt-get install arb transfig, xfig, libmotif3
More info here: http://techno.mikro.biologie.tu-muenchen.de/
]]></description>
			<content:encoded><![CDATA[<p>I added the following lines to my &#8216;/etc/apt/sources.list&#8217;</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">deb http://techno.mikro.biologie.tu-muenchen.de/debian intrepid non-free<br />
deb http://techno.mikro.biologie.tu-muenchen.de/debian hardy non-free</div></div>
<p>and installed the packages arb (base installation), transfig (something to do with LaTeX), xfig (for exporting trees), and libmotif3 (for library libXm.so.3)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install arb transfig, xfig, libmotif3</div></div>
<p>More info here: <a href="http://techno.mikro.biologie.tu-muenchen.de/">http://techno.mikro.biologie.tu-muenchen.de/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/439/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phylogeny workflow</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/410</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/410#comments</comments>
		<pubDate>Tue, 13 Jan 2009 23:16:18 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[phylogeny]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=410</guid>
		<description><![CDATA[This is my general phylogeny workflow, starting with raw FASTA sequences and ending in a maximum parsimony or maximum likelihood phylogenetic tree with distances.  Programs used: ARB 07.12.06org, Seaview, PAUP* 4.0 beta 10 (MacOSX), PHYLIP 3.68, ModelTest Server 1.0, PRAP2, Inkscape, XFIG.

get sequences into ARB, via e.g. greengenes or SILVA or RDP. If importing [...]]]></description>
			<content:encoded><![CDATA[<p>This is my general phylogeny workflow, starting with raw FASTA sequences and ending in a maximum parsimony or maximum likelihood phylogenetic tree with distances.  Programs used: <a href="http://arb-home.de">ARB 07.12.06org</a>, <a href="http://pbil.univ-lyon1.fr/software/seaview.html">Seaview</a>, <a href="http://paup.csit.fsu.edu/">PAUP* 4.0 beta 10 (MacOSX)</a>, <a href="http://evolution.genetics.washington.edu/phylip.html">PHYLIP 3.68</a>, <a href="http://darwin.uvigo.es/software/modeltest_server.html">ModelTest Server 1.0</a>, <a href="http://systevol.nees.uni-bonn.de/software/PRAP2">PRAP2</a>, <a href="http://www.inkscape.org/">Inkscape</a>, <a href="http://www.xfig.org/">XFIG</a>.</p>
<ol>
<li>get sequences into ARB, via e.g. <a href="http://greengenes.lbl.gov/">greengenes</a> or <a href="http://www.arb-silva.de/">SILVA</a> or <a href="http://rdp.cme.msu.edu/">RDP</a>. If importing an alignment in FASTA format you may need to use the following IFT (save with rest of arb .ift files, e.g. usr/arb/lib/import/fasta_wgap.ift):
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AUTODETECT &nbsp; &nbsp; &nbsp;&quot;&gt;*&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; #Global settings:<br />
KEYWIDTH &nbsp; &nbsp; &nbsp; &nbsp;1<br />
BEGIN &nbsp; &quot;&gt;??*&quot;<br />
MATCH &nbsp; &quot;&gt;*&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SRT &quot;* *=*1:*\t*=*1&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; WRITE &quot;name&quot;<br />
MATCH &nbsp; &quot;&gt;*&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SRT &quot;*|*=*1&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; WRITE &quot;full_name&quot;<br />
SEQUENCEAFTER &nbsp; &quot;*&quot;<br />
SEQUENCESRT &nbsp; &nbsp; &quot;&quot;<br />
SEQUENCECOLUMN &nbsp;0<br />
SEQUENCEEND &nbsp; &nbsp; &quot;&gt;*&quot;<br />
# DONT_GEN_NAMES<br />
CREATE_ACC_FROM_SEQUENCE<br />
END &nbsp; &nbsp; &quot;//&quot;</div></div>
</li>
<li>in ARB: prune tree to closest isolates, closest clones/from environment, and enough internal branches for context. make a copy for each tree you work on.</li>
<li>in ARB: mark all in tree, look at alignment, unselect those not full length/long enough, note start and end of full length section by position.</li>
<li>in ARB: export sequence to fasta (File&#8211;>Export&#8211;>Export to foreign format).  You may want to use a simple export file (EFT) like the following (save it with the others e.g. usr/arb/lib/import/fasta_simple.eft or wherever) :
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">SUFFIX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fasta<br />
BEGIN<br />
&gt;*(name)<br />
*(|export_sequence)</div></div>
<p>During the export use a hypervariable SAI (made by parsimony) to filter by quality (Lane 1991 mask) &#8220;-=.0123456&#8243; and region to export, using the starting and ending positions you determined previously</li>
<li>in SEAVIEW, open exported FASTA file and save as NEXUS file (the export filter from ARB to PAUP doesn&#8217;t seem to work very well)</li>
<li>PAUP may get grouchy if you have digit-only sequence names, so you can run the following script to temporarily change the names.
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">s<span style="color: #000000; font-weight: bold;">/</span><span style="color: #ff0000;">'\([0-9]\{4,\}\)'</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #ff0000;">'\1tmpname'</span><span style="color: #000000; font-weight: bold;">/</span>g</div></div>
<p>Save the script as &#8216;fromdigits.sed&#8217; (it&#8217;s easier as a file because the apostrophes in the regular expression complicate things on the command line) and run</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-f</span> fromdigits.sed <span style="color: #7a0874; font-weight: bold;">&#91;</span>filename.nexus<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>filename.converted.nexus<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
<p>After running PAUP you can change the names back in the PHYLIP tree files by using the following sed script:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/\([0-9]\{4,\}\)tmp[name]*/\1/g'</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>treefile.phy<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>treefile.converted.phy<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
<p>Or, from NEXUS tree files:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/\([0-9]\{4,\}\)tmp[name]*/\1/g'</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>treefile.nexus<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>treefile.converted.nexus<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
<li>in a text editor, open NEXUS file and append PAUP block to end, save as new file. for bootstrapping, the PAUP block may come from MODELTEST (NOTE <a href="http://paup.csit.fsu.edu/problems.html">bug in PAUP 4.10b</a> means you have to add an extra command to MODELTEST input block: &#8220;default lscores longfmt=yes&#8221;). for ratcheting the PAUP block may come from PRAP2</li>
<li>run in PAUP to get parsimony/likelihood trees, save trees in phylip format. if you only have a NEXUS tree, open it in a texteditor and delete the introductory NEXUS block. keep only what is between the outermost parentheses.</li>
<li>in ARB: input consensus tree with bootstraps back into arb using Tree&#8211;>TreeAdmin&#8211;>Import. make sure to remove the period (.) from the tree name or it won&#8217;t import.</li>
<li>in ARB: save distance matrix to &#8216;infile&#8217; by doing Tree&#8211;>Build Tree&#8211;>Distance Methods&#8211;>Phylip Distance Matrix, then use the same filter as above for trees. Hit &#8216;y&#8217; and try to save the file that opens up as &#8216;/tmp/infile&#8217;. If no file pops up, make sure you&#8217;ve installed &#8216;xedit&#8217; or make a soft link from e.g. /usr/bin/xedit to some other text editor e.g. gedit, kedit. If you can&#8217;t save the file anywhere, copy it from the ~/.arb_tmp directory in your home folder.</li>
<li>in ARB: save tree to /tmp/arbtree (Tree&#8211;>Tree Admin&#8211;>Export).
</li>
<li>here is a script that does the following 3 steps:
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #666666; font-style: italic;"># Script file for automating the process of adding distances to likelihood tree</span><br />
<span style="color: #666666; font-style: italic;"># REC</span><br />
<br />
<span style="color: #666666; font-style: italic;"># turns tree from arb ('arbtree') and distance matrix from dnadist ('distmatrix') into arb tree plus distances ('arbtree.fitch.outtree')</span><br />
<br />
<span style="color: #007800;">filedate</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>s<span style="color: #000000; font-weight: bold;">`</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> tmp<span style="color: #007800;">$filedate</span><br />
<span style="color: #7a0874; font-weight: bold;">cd</span> tmp<span style="color: #007800;">$filedate</span><br />
<br />
<span style="color: #666666; font-style: italic;"># clean up tree file</span><br />
<span style="color: #666666; font-style: italic;"># the sed '1d' removes the notes line -- if you have zero or more than one you'll need to change this or do it manually</span><br />
<span style="color: #666666; font-style: italic;"># the tr -d [:space:] gets rid of all the whitespace</span><br />
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'1d'</span> <span style="color: #000000; font-weight: bold;">&lt;</span> .<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>arbtree <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #660033;">-d</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>:space:<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> intree<br />
<br />
<span style="color: #666666; font-style: italic;"># unroot tree file</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> y; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #c20cb9; font-weight: bold;">w</span>; <span style="color: #7a0874; font-weight: bold;">echo</span> u; <span style="color: #7a0874; font-weight: bold;">echo</span> q<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>retree<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> intree arbtree.retree.intree<br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> outtree intree<br />
<br />
<span style="color: #666666; font-style: italic;"># run fitch to add the distances to the tree we've supplied</span><br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> .<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>distmatrix infile<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> d; <span style="color: #7a0874; font-weight: bold;">echo</span> u; <span style="color: #7a0874; font-weight: bold;">echo</span> -; <span style="color: #7a0874; font-weight: bold;">echo</span> y<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>fitch<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> intree arbtree.fitch.intree<br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> infile arbtree.fitch.infile<br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> outtree arbtree.fitch.outtree<br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> outfile arbtree.fitch.outfile<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ..</div></div>
</li>
<p>to do it manually: in a text editor: delete first line and despace tree for phylip, or do the following on the command line:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sed '1d' &lt; arbtree | tr -d [:space:] &gt; intree</div></div>
<p>with PHYLIP: run retree &#8211;> write unrooted tree, then mv outtree intree</li>
<p>with PHYLIP: run fitch, choose options D &#8211;> minimum evolution, U &#8211;> input file, &#8211; &#8211;> no negative lengths</li>
<li>in ARB: import outtree with Tree&#8211;>Tree Admin&#8211;>Import</li>
<li>get NDS info organized and displayed correctly, e.g.
<ul>
<li>
&#8211;to rename accession numbers to accession numbers from greengenes<br />
copy full_name to acc</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">:*=*(full_name)</div></div>
<p>then get rid of extraneous info:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/[0-9][0-9]* [A-Z][A-Z]*[0-9]*\.*[0-9]* //<br />
/\..*//</div></div>
</li>
<li>&#8211;to rename full_name by sequence info<br />
copy full_name to tmp and to backup (just in case)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">:*=*(full_name)</div></div>
<p>then get rid of extraneous info:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/[0-9][0-9]* [A-Z][A-Z]*[0-9]*\.*[0-9]* //</div></div>
</li>
<li>then copy tmp to full_name
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">:*=*(tmp)</div></div>
</li>
</ul>
<li>in ARB: export to XFIG (Tree&#8211;>Export to xfig) with no handles, no colors, full tree</li>
<li>in XFIG: immediately export to SVG</li>
<li>in INKSCAPE: open svg tree file and edit as necessary</li>
<li>in INKSCAPE: resize page (File &#8211;> document properties &#8211;> fit page to selection), resize selection to maximize page, export bitmap 300dpi png</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/410/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsimony ratchets and efficient time usage</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/386</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/386#comments</comments>
		<pubDate>Tue, 06 Jan 2009 23:35:05 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[phylogeny]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/wordpress/archives/386</guid>
		<description><![CDATA[Trying to get a Parsimony (and likelihood) Ratchet protocol going I spent a couple hours trying to get PAUPRat working, including compiling an old compiler and finding old versions of libraries and editing Makefiles&#8230; then I found a newer Java program that does the same thing: PRAP2.  The program includes the Likelihood ratchet protocol [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to get a <a href="http://hem.fyristorg.com/acacia/MLpaup.htm" target="_blank">Parsimony (and likelihood) Ratchet</a> protocol going I spent a couple hours trying to get <a href="http://users.iab.uaf.edu/~derek_sikes/software2.htm" target="_blank">PAUPRat</a> working, including compiling an old compiler and finding old versions of libraries and editing Makefiles&#8230; then I found a newer Java program that does the same thing: <a href="http://systevol.nees.uni-bonn.de/software/PRAP2" target="_blank">PRAP2</a>.  The program includes the Likelihood ratchet protocol described above but not the Parsimony.  Here are the settings for the Parsimony ratchet protocol, as described by Sikes et al., which are then replicated by PRAP2 into PAUP* blocks.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[!* startcmd: * * * * * * * * * * * * * &nbsp;*] &nbsp;<br />
[!* ----- Parsimony Ratchet &nbsp;-----*]<br />
[!* &nbsp; &nbsp; &nbsp; as in PAUPrat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
[!* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; January, 2009 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
Time;<br />
Log File=paupratchet.log; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
Set Increase=auto;<br />
hs status=no nrep=1 swap=tbr start=stepwise addseq=random nchuck=1 chuckscore=1;<br />
savetrees file=mydata.tre replace;<br />
savetrees file=mydata.tmp replace;<br />
[!* paupcmd: * * * * * * * * * * * * * &nbsp;*]<br />
pset mstaxa=uncertain;<br />
hsearch status=no start=1 swap=tbr multrees=no;<br />
[!* rewtdcmd:* * * * * * * * * * * * * &nbsp;*] &nbsp;<br />
[!* normcmd:* * * * * * * * * * * * * &nbsp;*]<br />
savetrees file=mydata.tmp replace;<br />
gettrees file=mydata.tre mode=7;<br />
savetrees file=mydata.tre replace;<br />
gettrees file=mydata.tmp mode=3 warntree=no;<br />
Time;<br />
[!* stopcmd: * * * * * * * * * * * * * &nbsp;*]<br />
gettrees file=mydata.tre mode=3;<br />
pscores all;<br />
Time; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
Log Stop; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
[!* * * * * * * * * * * * * * * * *] <br />
[!* -- THIS SEARCH IS COMPLETE -- *] <br />
[!* &nbsp;A LOG FILE HAS BEEN WRITTEN &nbsp;*] <br />
[!* AND ALL TREES HAVE BEEN SAVED *] <br />
[!* &nbsp; &nbsp;IT IS OKAY TO QUIT PAUP &nbsp; &nbsp;*] <br />
[!* * * * * * * * * * * * * * * * *] <br />
Quit;</div></div>
<p>Update: PRAP2 has a built-in parsimony ratchet that is more cleanly written than this one, except I had to remove the command &#8216;dropmode=execute&#8217; because PAUP* 4b10 wasn&#8217;t recognizing it.  Using the pre-configured ratchet you can choose the number of runs to code automatically, but using a custom script you can&#8217;t.  So here&#8217;s a bash shell script to automate the script above, after generating some number (here N=20) script files named &#8217;sequences.[1-N].nexus&#8217;.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#!/bin/bash<br />
for i in `jot 20 1 20`;<br />
do<br />
&nbsp;`paup sequences.$i.nexus`<br />
&nbsp;`mv -f mydata.tmp mydata.$i.tmp`<br />
&nbsp;`mv -f mydata.tre mydata.$i.tre`<br />
&nbsp;`mv -f paupratchet.log paupratchet.$i.log`<br />
done</div></div>
<p>Since the parsimony ratchets run quickly it is fine to do them all on one processor, but I&#8217;m starting the likelihood runs separately on each processor.  This script will run them one at a time, but if you add &#8217;screen -S like.$i&#8217; to the line before &#8216;/bin/paup&#8230;&#8217; it should start up to 10 simultaneously in separate &#8220;<a href="http://www.linuxforums.org/applications/the_screen_program.html">screens</a>&#8220;, assuming your nexus files are all in the same directory and named ratchet.like.[1-10].nexus</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>jot 10 1 10<span style="color: #000000; font-weight: bold;">`</span>;<br />
<span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">mkdir</span> like<span style="color: #007800;">$i</span><span style="color: #000000; font-weight: bold;">`</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cp</span> ratchet.like.<span style="color: #007800;">$i</span>.nexus .<span style="color: #000000; font-weight: bold;">/</span>like<span style="color: #007800;">$i</span><span style="color: #000000; font-weight: bold;">/`</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">cd</span> like<span style="color: #007800;">$i</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">`/</span>bin<span style="color: #000000; font-weight: bold;">/</span>paup4b10-ppc-macosx <span style="color: #660033;">-n</span> .<span style="color: #000000; font-weight: bold;">/</span>ratchet.like.<span style="color: #007800;">$i</span>.nexus<span style="color: #000000; font-weight: bold;">`</span><br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">cd</span> ..<br />
<span style="color: #000000; font-weight: bold;">done</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/386/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping tabs on our corvid neighbors</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/351</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/351#comments</comments>
		<pubDate>Mon, 29 Dec 2008 22:32:30 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[crows]]></category>
		<category><![CDATA[outreach]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=351</guid>
		<description><![CDATA[Have you ever noticed hundreds of crows streaming through the shadows at dusk (probably making a ruckus)?  Have you ever watched a crow chase away a bald eagle and wondered at its gumption?  Have you ever been dive-bombed by a territorial crow?  Have you ever wondered why?  Have you ever wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever noticed hundreds of crows streaming through the shadows at dusk (probably making a ruckus)?  Have you ever watched a crow chase away a bald eagle and wondered at its gumption?  Have you ever been dive-bombed by a territorial crow?  Have you ever wondered why?  Have you ever wanted to tell someone else about your crow encounters?  If so, here is your chance.  I&#8217;ve created an interactive website (<a href="http://staff.washington.edu/rec3141/crows">http://staff.washington.edu/rec3141/crows</a>) enabling citizen scientists to share their crow observations with scientists and each other using a variety of web technologies.  The ultimate goal of this project is to involve citizens in the process of scientific discovery. During this process I hope we will build a useful database of crow happenings in the Puget Sound region and beyond.  The backend requirements for the website are open-source and freely available so that creating a similar site to track another species would require minimal effort.</p>
<p>The website is organized around a map of the Puget Sound region, and the majority of the data is geocoded so that sightings can be placed into geographic context.  The primary method of data submission is via the website itself, including instructions and guidance on reporting anecdotes, daily migrations, nightly roosts, and crows banded by Prof. John Marzluff (<a href="http://www.urbanecology.washington.edu/people/marzluff.htm">http://www.urbanecology.washington.edu/people/marzluff.htm</a>) at the University of Washington.  Additionally, anecdotes can be submitted via Twitter (<a href="http://twitter.com">http://twitter.com</a>), a popular micro-blogging web site, by including the tag #seattlecrows in any posting. Updates to Twitter can be made from mobile phones via SMS text messaging.  Finally, geotagged photos labeled with the word &#8216;crow&#8217; are automatically added from Flickr (<a href="http://flickr.com">http://flickr.com</a>), a popular photo-sharing web site.</p>
<p>The submitted data is incorporated into a database and made available in real-time.  It is important that the observations be accessible to those who made them (that is, the public), rather than be potentially lost in the black box of a researcher&#8217;s office, only to resurface years later in an relatively-inaccessible scientific journal article. Once submitted, each type of data is plotted on the map using unique icons; clicking on the icons reveals detailed information about each submission.  The data is also available as an RSS feed (<a href="http://staff.washington.edu/rec3141/crows/crowfeed.rss">http://staff.washington.edu/rec3141/crows/crowfeed.rss</a>) which can be read by any news aggregator (e.g. Bloglines, Google Reader).  New submissions can be tracked on Twitter by following @seattlecrows (<a href="http://twitter.com/seattlecrows">http://twitter.com/seattlecrows</a>).</p>
<p>Crows are all around us &#8212; sometimes in staggering numbers &#8212; and it seems that everyone has at least one story to tell about crows! Love them or hate them, they&#8217;ll be with civilization for a long, long time.  Take the chance to get to know your corvid neighbors &#8212; you won&#8217;t regret it.  Submit your crow sightings at <a href="http://tinyurl.com/seattlecrows">http://tinyurl.com/seattlecrows</a></p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/351/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Open Access&#8211; is there still a debate?</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/241</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/241#comments</comments>
		<pubDate>Thu, 18 Sep 2008 21:10:03 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[open access]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=241</guid>
		<description><![CDATA[Clearly, the publishers think there is.  &#8220;[John] Conyers, a liberal Democrat whom one might expect to be on the other side of this issue, is taking harsh aim at a new National Institutes of Health (NIH) policy requiring NIH-funded scientists to archive their published papers in a publicly accessible database within a year of [...]]]></description>
			<content:encoded><![CDATA[<p>Clearly, the publishers think there is.  &#8220;[John] Conyers, a liberal Democrat whom one might expect to be on the other side of this issue, is taking harsh aim at a new National Institutes of Health (NIH) policy requiring NIH-funded scientists to archive their published papers in a publicly accessible database within a year of publication.&#8221;  A recent Nature Blog post (<a href="http://blogs.nature.com/news/thegreatbeyond/2008/09/post_10.html">The Great Beyond: Open access: public good or publishers&#8217; evil?</a>) details a seedy melange of scientific publishing houses, lobbyists, and Congress.  Here&#8217;s another post at PolITiGenomics: <a href="http://www.politigenomics.com/2008/09/open-access-under-attack.html">Open access under attack</a>.</p>
<p>So, clearly, we need to do something about it.  Here&#8217;s one way: <a href="https://forms.house.gov/wyr/welcome.shtml">write to your Representatives</a>.  I did&#8230;</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Representative McDermott,<br />
As a UW graduate student in the sciences, and a constituent who is strongly in support of the advancement of science, I am writing to urge you to vote against the Fair Copyright in Research Works Act (HR 6845). This bill will revoke the requirement for US taxpayer-funded research to be made accessible to those taxpayers who funded it, for the sole gain of (mostly foreign) publishing houses. &nbsp;Open access to scientific research advances science in a positive feedback cycle, while limiting access for the sake of profits for a few throttles scientific advancement for many. Open access to government-funded research was a long overdue stance that provides the American taxpayer with the highest return on his or her investment. HR 6845 would undermine science and devalue the government’s investment in science. I strongly urge you to vote against HR 6845, and to consider writing a counter-proposal that would extend the NIH requirement for open access to NSF-funded research as well. &nbsp;Thank you for your time.<br />
<br />
Sincerely,<br />
Eric Collins<br />
School of Oceanography<br />
University of Washington</div></div>
<p>Here&#8217;s another way: <a href="http://openaccessday.org">Open Access Day &#8211; October 14, 2008</a>.  I would like to participate but there is nothing yet planned at UW.  Shall I begin&#8230;?</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/241/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSG: Miry Scientific Gabble</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/198</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/198#comments</comments>
		<pubDate>Thu, 11 Sep 2008 00:05:57 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[industry]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=198</guid>
		<description><![CDATA[I received a question today about monosodium glutamate (MSG), in particular the concentration of MSG in yeast and yeast extracts, which are often used as flavorings (Nutritional Yeast) and spreads (e.g. Vegemite and Marmite).  As usual, I headed to the web to find the answer, and as usual in these kinds of matters, what [...]]]></description>
			<content:encoded><![CDATA[<p>I received a question today about monosodium glutamate (MSG), in particular the concentration of MSG in yeast and yeast extracts, which are often used as flavorings (Nutritional Yeast) and spreads (e.g. Vegemite and Marmite).  As usual, I headed to the web to find the answer, and as usual in these kinds of matters, what I found was a miry mix of science, pseudoscience, bias, and bollocks.  (What I didn&#8217;t find was the answer to that question&#8230;)  In particular, two competing sites seem to host a lot of the &#8216;information&#8217; present on the web about MSG.  One group is an industry group called the International Food Information Council, which hosts a <a href="http://www.ific.org/publications/reviews/upload/Glutamate-and-Monosodium-Glutamate.pdf">&#8216;review&#8217; of the literature</a>, and find, surprisingly enough, that there are no harmful effects of consuming MSG.  In that document they highlight a <a href="http://www.ncbi.nlm.nih.gov/pubmed/10736382">review</a> of a study by <a href="http://www.ncbi.nlm.nih.gov/pubmed/11080723">Geha et al.</a>, and assure us that &#8220;any observed reactions were mild, transient, and not life threatening.&#8221;  The document doesn&#8217;t mention that there were statistically significant increases in reactions to free glutamate in almost 40% of the subjects, a self-selected group of people who thought they had previously had a reaction to MSG.</p>
<p>TABLE II. Protocol A (n = 130): Frequency of symptoms reported to challenge with 5 g of MSG versus placebo<br />
<img src='/rec3141/wordpress/wp-content/plugins/latexrender/pictures/4fc45530c634c71bad742690765791e4_73.09999pt.png' title='\begin{tabular}{lrrrc} \hline\hline Symptom&amp;placebo&amp;5g of MSG&amp;relative risk&amp;P $&lt;$ .005\\ \hline General weakness&amp;0.14&amp;0.30&amp;2.17&amp;*\\ Muscle tightness&amp;0.18&amp;0.34&amp;1.83&amp;*\\ Muscle twitching&amp;0.06&amp;0.13&amp;2.13&amp;\\ Flushing&amp;0.08&amp;0.25&amp;3.30&amp;*\\ Sweating&amp;0.04&amp;0.07&amp;1.80&amp;\\ Burning sensation&amp;0.05&amp;0.14&amp;3.00&amp;*\\ Headache/migraine&amp;0.28&amp;0.54&amp;1.89&amp;*\\ Chest pain&amp;0.02&amp;0.06&amp;2.67&amp;\\ Palpitations&amp;0.04&amp;0.10&amp;2.60&amp;\\ Numbness/tingling&amp;0.20&amp;0.28&amp;1.38&amp;\\ At least 2 symptoms&amp;0.27&amp;0.53&amp;1.97&amp;*\\ \hline\hline \end{tabular}' alt='\begin{tabular}{lrrrc} \hline\hline Symptom&amp;placebo&amp;5g of MSG&amp;relative risk&amp;P $&lt;$ .005\\ \hline General weakness&amp;0.14&amp;0.30&amp;2.17&amp;*\\ Muscle tightness&amp;0.18&amp;0.34&amp;1.83&amp;*\\ Muscle twitching&amp;0.06&amp;0.13&amp;2.13&amp;\\ Flushing&amp;0.08&amp;0.25&amp;3.30&amp;*\\ Sweating&amp;0.04&amp;0.07&amp;1.80&amp;\\ Burning sensation&amp;0.05&amp;0.14&amp;3.00&amp;*\\ Headache/migraine&amp;0.28&amp;0.54&amp;1.89&amp;*\\ Chest pain&amp;0.02&amp;0.06&amp;2.67&amp;\\ Palpitations&amp;0.04&amp;0.10&amp;2.60&amp;\\ Numbness/tingling&amp;0.20&amp;0.28&amp;1.38&amp;\\ At least 2 symptoms&amp;0.27&amp;0.53&amp;1.97&amp;*\\ \hline\hline \end{tabular}'  style="vertical-align:-73.09999pt;" ></p>
<p>You'll notice that half of the reactions were reported significantly more after exposure to MSG than to placebo.  They also mention that a number of other reactions were reported in the presence of MSG and not placebo, which aren't listed here.  Also note that the low level of significance they chose to determine which reactions were statistically more common: alpha = 0.005.  Perhaps this is common in medical literature, I don't know, but a much more common level is ten times higher, alpha = 0.05.  Their choice of a much lower level means that these 5 reactions were <strong>highly</strong> significantly more frequent after MSG than not.  The authors acknowledge this but then discount these results later because they were not &#8216;reproducible&#8217; and because of something they term &#8216;demand bias&#8217;.  I don&#8217;t know what this term means, but it doesn&#8217;t appear commonly in the literature.  In a search of Google Scholar, many of the papers that came up bearing this term were related to glutamate studies.  Oh, did I forget to mention that this study, and most of the others, were funded by various branches of the glutamate industry?  oops&#8230;  This particular papers bears the note &#8220;Supported by a grant from the International Glutamate Technical Committee&#8221;, which bears some kind of relation to the &#8220;<a href="http://www.msgfacts.com/aboutus.html">The Glutamate Association</a>&#8220;.</p>
<p>An <a href="http://www.truthinlabeling.org/WhoRuns.html">explanation of these groups</a> is found on the other website I mentioned before, <a href="http://www.truthinlabeling.org">Truth in Labeling</a>.  This consumer advocate site contains, predictably, a lot of anecdotes and ad hominem attacks against the industry (advocates of which are deprecatingly termed &#8216;Glutes&#8217;).  It also contains some analyses and fact-checking on the studies and news releases put out by the MSG industry.  On the whole, I&#8217;m with them.  Outspent and out-shouted, they&#8217;re doing what they can to understand the true ramifications of this pervasive substance in our food supply, without much help from independent researchers.</p>
<p>Nevertheless, if industry goes too far in denying reactions to MSG, consumer advocates probably go too far in pursuing claims of reactions to MSG.  Of course, replace &#8216;MSG&#8217; in the last sentence with innumerable other chemicals compounds and it will still be just as true.  Both the under- and over-interpretation of data can lead to bias and general confusion over the true meaning of the findings.  I suspect that MSG really is safe in modest quantities for most people, but that some people can have adverse reactions that can range from discomfiture, to discomfort, to true danger.  Unfortunately, I&#8217;m doubtful that those on either side of arguments like this are willing to make the kind of intellectual concessions necessary to find the grain of truth amidst the hyperbolic grit.</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/198/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cell concentration conversion from optical density</title>
		<link>http://staff.washington.edu/rec3141/wordpress/archives/169</link>
		<comments>http://staff.washington.edu/rec3141/wordpress/archives/169#comments</comments>
		<pubDate>Tue, 19 Aug 2008 22:32:45 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[none]]></category>
		<category><![CDATA[bacteria]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/rec3141/?p=169</guid>
		<description><![CDATA[We use optical density (OD) at a wavelength of 600nm as a quick approximation of cell abundance in liquid bacterial culture in lieu of counting the cells on a microscope.  Different bacterial strains can have different relationships between OD and cell abundance depending on the amounts of polysaccharides or other secondary metabolites they might [...]]]></description>
			<content:encoded><![CDATA[<p>We use optical density (OD) at a wavelength of 600nm as a quick approximation of cell abundance in liquid bacterial culture in lieu of counting the cells on a microscope.  Different bacterial strains can have different relationships between OD and cell abundance depending on the amounts of polysaccharides or other secondary metabolites they might extrude into the culture medium or coat themselves with, which may vary with temperature or growth medium, for example.</p>
<p>A former student in the lab, A. Huston, measured OD600 and microscope counts of <em><a href="http://dx.doi.org/10.1073/pnas.0504766102">Colwellia psychrerythraea</em> strain 34H</a> in Marine Broth 2216 at two temperatures: -1C and its optimal temperature, +8C.  Although the growth rate of the bacterium at +8C is several times that at -1C, there appears to be little difference in the relationship between cell abundance and OD at the two temperatures. </p>
<p><a href="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2008/08/34h_od_cells_conversion.png"><img src="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2008/08/34h_od_cells_conversion.png" alt="34h_od_cells_conversion" title="34h_od_cells_conversion" width="500" height="343" class="size-full wp-image-170" /></a></p>
<p>
Some linear equations were provided to convert from OD to cell abundance, but here I&#8217;ve taken the original data and used a logistic function to get a better conversion.  The equation below has an r^2 of 0.98 for the combined -1 and +8C temperature data.</p>
<p><a href="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2008/08/cells-od-eqn63366.gif"><br />
<img src="http://staff.washington.edu/rec3141/wordpress/wp-content/uploads/2008/08/cells-od-eqn63366-300x51.gif" alt="cells-od-eqn63366" title="cells-od-eqn63366" width="300" height="51" class="size-medium wp-image-171" /><br />
</a></p>
<p>
(Thanks to <a href="http://www.hamline.edu/~arundquist/equationeditor/">Hamline University Physics Department Latex Equation Editor</a> for the online LaTeXing, and to the open source graphing program <a href="http://soft.proindependent.com/qtiplot.html">QtiPlot</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/rec3141/wordpress/archives/169/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
