<?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>Byte Size Biology</title>
	<atom:link href="http://bytesizebio.net/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://bytesizebio.net</link>
	<description>The musings and ravings of a computational biologist about science, computers, music and, you know, stuff</description>
	<lastBuildDate>Thu, 02 Sep 2010 21:38:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Changing directions</title>
		<link>http://bytesizebio.net/index.php/2010/09/02/changing-directions/</link>
		<comments>http://bytesizebio.net/index.php/2010/09/02/changing-directions/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 21:38:48 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[funny]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[gears]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=4052</guid>
		<description><![CDATA[For some reason, this reminds me a lot of the way some of my research has been going recently&#8230;.]]></description>
			<content:encoded><![CDATA[<p>For some reason, this reminds me a lot of the way some of my research has been going recently&#8230;.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="445" height="364" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/3aobPgGzB-U?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="445" height="364" src="http://www.youtube.com/v/3aobPgGzB-U?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/09/02/changing-directions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The open source spammer: extracting email addresses from an openoffice.org document</title>
		<link>http://bytesizebio.net/index.php/2010/09/01/the-open-source-spammer-extracting-email-addresses-from-an-openoffice-org-document/</link>
		<comments>http://bytesizebio.net/index.php/2010/09/01/the-open-source-spammer-extracting-email-addresses-from-an-openoffice-org-document/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 01:19:11 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[operoffice.org]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=4031</guid>
		<description><![CDATA[I&#8217;m organizing a workshop later this month (see here, scroll to session V), and I have just received the attendees list from the main conference&#8217;s organizers. Since I need to spam send the attendees informative email on the specific workshop, I needed their email addresses. Here&#8217;s what I did. The file itself is MS Word [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m organizing a workshop later this month (see <a href="http://www.mimg.ucla.edu/arrowhead2010/program.html" target="_blank">here, scroll to session V</a>), and I have just received the attendees list from the main conference&#8217;s organizers. Since I need to <span style="text-decoration: line-through;">spam</span> send the attendees informative email on the specific workshop, I needed their email addresses. Here&#8217;s what I did.</p>
<p>The file itself is MS Word doc. Those I save as native openoffice on my system. Now, an openoffice document is really just a bunch of mostly XML documents zipped together. If you do the following:</p>
<pre class="brush:bash">unzip  -l conference-delegates.odt</pre>
<p>You get a listing that looks like this:</p>
<pre>Archive:  conference-delegates.odt
 Length      Date    Time    Name
---------  ---------- -----   ----
 39     2010-09-01 18:16   mimetype
 71244  2010-09-01 18:16   content.xml
 94     2010-09-01 18:16   layout-cache
 15522  2010-09-01 18:16   styles.xml
 1241   2010-09-01 18:16   meta.xml
 24852  2010-09-01 18:16   Thumbnails/thumbnail.png
 0      2010-09-01 18:16   Configurations2/accelerator/current.xml
 0      2010-09-01 18:16   Configurations2/progressbar/
 0      2010-09-01 18:16   Configurations2/floater/
 0      2010-09-01 18:16   Configurations2/popupmenu/
 0      2010-09-01 18:16   Configurations2/menubar/
 0      2010-09-01 18:16   Configurations2/toolbar/
 0      2010-09-01 18:16   Configurations2/images/Bitmaps/
 0      2010-09-01 18:16   Configurations2/statusbar/
 8961   2010-09-01 18:16   settings.xml
 1988   2010-09-01 18:16   META-INF/manifest.xml
---------                     -------
 123941                     16 files
</pre>
<p>Wow. Which file contains the delegates&#8217;  emails in all that?<strong> </strong>Actually, <strong>content.xml</strong> contains the textual content of the openoffice.org document. You can open it with your favorite XML and see how it&#8217;s constructed (I like Firefox myself for browsing, and XML Copy Editor for more in-depth diagnosis). But for now, we would like to extract the emails. So we unzip <strong>content.xml</strong> only:</p>
<pre class="brush:bash">unzip conference-delegates.odt content.xml
</pre>
<p>This <strong>unzip</strong> command will only extract <strong>content.xml </strong>from the archive that is the .odt file.</p>
<p>When looking at the <strong>content.xml</strong> file, we see lines like this:</p>
<pre class="brush:xml"> &lt;text:a xlink:type="simple" xlink:href="mailto:noone@usc.edu"&gt;

 &lt;text:span text:style-name="Internet_20_link"&gt;
 &lt;text:span text:style-name="T2"&gt;noone@usc.edu&lt;/text:span&gt;
 &lt;/text:span&gt;
 &lt;/text:a&gt;
 &lt;/text:p&gt;
</pre>
<p>Which means that &#8220;noone&#8217;s&#8221; (usernames have been changed to protect the innocent) email appears both as text and as hyperlink. It may or may not be that all the delegates&#8217; emails are hyperlinked, so we may expect some duplications we need to get rid of.</p>
<p>To get the email addresses themselves, we use egrep. egrep uses the extended regular expression syntax in searching for emails. What is a good regex for email addresses? There is a <a href="http://www.regular-expressions.info/email.html" target="_blank">good discussion of that at the regex-guru</a> site. I use the rather simple form:</p>
<pre class="brush:bash">egrep -o -i '\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b' content.xml</pre>
<p>Explanation: the  -o qualifier prints only the word matching the regex.  -i means a  case-insensitive match. <strong>egrep</strong>, the extended version of grep, that can handle regexs with things like {m,n} repeats. However, the result of our little exercise would still have duplicate emails, because of the hyperlinking tags. Here is how to get rid of the duplicates:</p>
<pre class="brush:bash">egrep -o -i '\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b' content.xml | sort |  uniq
</pre>
<p><strong>sort</strong> sorts the output alphabetically, preparing it for <strong>uniq</strong> to get rid of duplicates.</p>
<p>One last touch-up: we really don&#8217;t need to physically extract the content.xml file. &#8220;unzip -c&#8221; extracts files to stdout. Therefore, we can get the email addresses without cluttering our disk:</p>
<pre class="brush:bash">unzip -c conference-delegates.odt content.xml | \
egrep -o -i '\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b' | sort |\
uniq &gt; email-these.txt</pre>
<p>Voila! <strong>email-these.txt</strong> now contains the emails of the conference delegates.</p>
<p>One last word: it may have been easier just to save the MS-Word doc file as text using the File -&gt; Save as&#8230;&#8221; option in openoffice.org.  Supposed we saved the file as conference-delegates.txt. We wouldn&#8217;t have to muck about with all the XML, and remove the email address duplicates due to hyperlinking. We could have just done:</p>
<pre class="brush:bash">egrep -o -i '\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b' \
conference-delegates.txt &gt; email-these.txt</pre>
<p>But where&#8217;s the fun in that?</p>
<p>Happy spamming!</p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/09/01/the-open-source-spammer-extracting-email-addresses-from-an-openoffice-org-document/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Predator MX: Jack the Rippler</title>
		<link>http://bytesizebio.net/index.php/2010/08/29/predator-mx-jack-the-rippler/</link>
		<comments>http://bytesizebio.net/index.php/2010/08/29/predator-mx-jack-the-rippler/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 16:28:45 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[Microbiology]]></category>
		<category><![CDATA[behavioral biology]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[microbioly]]></category>
		<category><![CDATA[predation]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=4017</guid>
		<description><![CDATA[No, not a new hunter-killer drone, neither is it the n+1 installment in the sci-fi horror series. Rather, Myxococcus xanthus. Again. M. xanthus is a highly cooperative bacterium, as we have already seen: when starved, most cells &#8220;commit suicide&#8221; while a few form spores, to survive the lean times. But M. xanthus also cooperates when [...]]]></description>
			<content:encoded><![CDATA[<p>No, not a new hunter-killer drone, neither is it the <em>n+1</em> installment in the <a href="http://www.imdb.com/title/tt0093773/">sci-fi horror series</a>. Rather, <em>Myxococcus xanthus</em>. Again.</p>
<div id="attachment_4028" class="wp-caption alignnone" style="width: 310px"><a href="http://bytesizebio.net/wp-content/uploads/2010/08/predator.jpg"><img src="http://bytesizebio.net/wp-content/uploads/2010/08/predator-300x270.jpg" alt="" title="predator" width="300" height="270" class="size-medium wp-image-4028" /></a><p class="wp-caption-text"><b>Not Predator MX.</b></p></div>
<p><em>M. xanthus</em> is a highly cooperative bacterium, <a target="_blank" href="http://bytesizebio.net/index.php/2010/08/27/when-is-it-a-good-idea-to-cheat/">as we have already seen</a>: when starved, most cells &#8220;commit suicide&#8221; while a few form spores, to survive the lean times. But <em>M. xanthus</em> also cooperates when times are good and food plentiful: <em>M. xanthus</em> cells form swarms, which envelope their prey and increase the concentration of digestive enzymes they secrete to the environment. </p>
<p><span style="float: left; padding: 5px;"><a href="http://www.researchblogging.org"><img alt="ResearchBlogging.org" src="http://www.researchblogging.org/public/citation_icons/rb2_large_gray.png" style="border:0;"/></a></span></p>
<p><em>M. xanthus</em> also ripple together to better ingest the nutrients released after digesting their prey. To do so, they use a type of pilus (motility organ, like a bacterial tentacle) called type IV secretion pili. But amazingly enough, in mutant <em>M. xanthus</em> that are unable to make these pili, a new mechanism for cooperative swarming evolved.  In 2003, Velicer &amp; Yu from the University of Tuebingen have used a group of mutant <em>M. xanthus</em>, which are lacking the type IV pili gene  to show that cooperative swarming can evolve using an alternative mechanism. The mutant bacteria do that by forming a physical net of sugars and proteins connecting them &#8212; and their rippling motion &#8212; together. Watching behavior evolve: how cool is that?</p>
<p>Finally, a movie of <em>M. xanthus</em> swarming &amp; rippling:</p>
<p><object width="445" height="364"><param name="movie" value="http://www.youtube.com/v/0rO1pwgsd9w?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/0rO1pwgsd9w?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="445" height="364"></embed></object></p>
<hr />
<p><span class="Z3988" title="ctx_ver=Z39.88-2004&#038;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&#038;rft.jtitle=Nature&#038;rft_id=info%3Adoi%2F10.1038%2Fnature01908&#038;rfr_id=info%3Asid%2Fresearchblogging.org&#038;rft.atitle=Evolution+of+novel+cooperative+swarming+in+the+bacterium+Myxococcus+xanthus&#038;rft.issn=0028-0836&#038;rft.date=2003&#038;rft.volume=425&#038;rft.issue=6953&#038;rft.spage=75&#038;rft.epage=78&#038;rft.artnum=http%3A%2F%2Fwww.nature.com%2Fdoifinder%2F10.1038%2Fnature01908&#038;rft.au=Velicer%2C+G.&#038;rft.au=Yu%2C+Y.&#038;rfe_dat=bpr3.included=1;bpr3.tags=Biology%2CBehavioral+Biology%2C+Microbiology">Velicer, G., &#038; Yu, Y. (2003). Evolution of novel cooperative swarming in the bacterium Myxococcus xanthus <span style="font-style: italic;">Nature, 425</span> (6953), 75-78 DOI: <a rev="review" href="http://dx.doi.org/10.1038/nature01908">10.1038/nature01908</a></span></p>
<p><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.jtitle=Journal+of+Bacteriology&amp;rft_id=info%3Adoi%2F10.1128%2FJB.00559-06&amp;rfr_id=info%3Asid%2Fresearchblogging.org&amp;rft.atitle=Rippling+Is+a+Predatory+Behavior+in+Myxococcus+xanthus&amp;rft.issn=0021-9193&amp;rft.date=2006&amp;rft.volume=188&amp;rft.issue=16&amp;rft.spage=5888&amp;rft.epage=5895&amp;rft.artnum=http%3A%2F%2Fjb.asm.org%2Fcgi%2Fdoi%2F10.1128%2FJB.00559-06&amp;rft.au=Berleman%2C+J.&amp;rft.au=Chumley%2C+T.&amp;rft.au=Cheung%2C+P.&amp;rft.au=Kirby%2C+J.&amp;rfe_dat=bpr3.included=1;bpr3.tags=Biology%2CMicrobiology+%2C+Behavioral+Biology">Berleman, J., Chumley, T., Cheung, P., &amp; Kirby, J. (2006). Rippling Is a Predatory Behavior in Myxococcus xanthus <span style="font-style: italic;">Journal of Bacteriology, 188</span> (16), 5888-5895 DOI: <a rev="review" href="http://dx.doi.org/10.1128/JB.00559-06">10.1128/JB.00559-06</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/08/29/predator-mx-jack-the-rippler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When is it a good idea to cheat?</title>
		<link>http://bytesizebio.net/index.php/2010/08/27/when-is-it-a-good-idea-to-cheat/</link>
		<comments>http://bytesizebio.net/index.php/2010/08/27/when-is-it-a-good-idea-to-cheat/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 23:14:00 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[Evolution]]></category>
		<category><![CDATA[Microbiology]]></category>
		<category><![CDATA[behavioral biology]]></category>
		<category><![CDATA[cheating]]></category>
		<category><![CDATA[cooperation]]></category>
		<category><![CDATA[microbiology]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=3825</guid>
		<description><![CDATA[I have written before about bacterial cooperation, and how cheating works, up to a point, in an environment of bacterial cooperation. That post talked about bacterial quorum sensing, the collective signaling mechanism by which bacteria construct supra-cellular structures called biofilms. Biofilms are tough multicellular enclosures that allow bacteria to survive and thrive in hostile environments, [...]]]></description>
			<content:encoded><![CDATA[<p>I have <a href="http://bytesizebio.net/index.php/2009/08/25/freeloading-pays-off-but-only-up-to-a-point/" target="_blank">written before about bacterial cooperation</a>, and how cheating works, up to a point, in an environment of bacterial cooperation. That post talked about bacterial quorum sensing, the collective signaling mechanism by which bacteria construct supra-cellular structures called biofilms. Biofilms are tough multicellular enclosures that allow bacteria to survive and thrive in hostile environments, and to invade host species. Both studies have shown that freeloading does not pay off. Bacteria who do not chip in to build the biofilm, yet benefit from it are ultimately doomed &#8212; and sometimes doom the collective of which they are constituents. That post dealt with the &#8220;here and now&#8221; aspect of cooperation and cheating.</p>
<div id="attachment_4005" class="wp-caption alignnone" style="width: 300px"><a href="http://bytesizebio.net/wp-content/uploads/2010/08/mxanthus-cycle.jpg"><img class="size-medium wp-image-4005" title="soz_bakterien2_neu" src="http://bytesizebio.net/wp-content/uploads/2010/08/mxanthus-cycle-290x300.jpg" alt="" width="290" height="300" /></a><p class="wp-caption-text">Life cycle of M. xanthus.  Credit: Carla canales / citizendium.org</p></div>
<p>This post deals with another aspect of bacterial cooperation: how does it evolve? Why cooperate in the first place at all? Every time an individual cooperates, short term gains are sacrificed for long-term ones, but those long-term ones are contingent upon all or most cooperating individuals doing their bit. Think about standing in line to the bus. If everyone cooperates, we get on the bus faster, but some of us may be forced to stand. On the other hand, shoving your way to the beginning of the line will assure you a good seat, albeit at the expense of glares from your fellow-passengers, and maybe a few altercations along the way.  In evolutionary terms, selfishness seems like a sounder strategy than cooperating.  After all, if you manage to gain a better position for yourself in life&#8217;s pecking order, you pass those genes that enable that to your progeny, and further down the line. Why cooperate or act selflessly in the first place? Why let someone else share the gene pool with you when you can have it all to yourself?<br />
<span style="float: left; padding: 5px;"><a href="http://www.researchblogging.org"><img style="border: 0;" src="http://www.researchblogging.org/public/citation_icons/rb2_large_gray.png" alt="ResearchBlogging.org" /></a></span><br />
Unless that &#8220;someone else&#8221; shared genes with you: that is, they were related in some way. Suddenly, cooperation seems to have evolutionary benefits: you are preserving and passing on some of the same genes.  Protecting kin is the most often-used explanation for how cooperation evolved in the first place: <em>kin selection</em>, meaning, favoring cooperation those individuals with which you share a larger number of genes over those who do not. Evolutionary biologists use the Hamilton&#8217;s law as a guideline:  the higher the benefit of the cooperation, the lower the cost, and the closer the relatedness of the individuals cooperating, the more likely it is that there will be cooperation. Putting it into an equation, cooperation will evolve if the following condition is met:</p>
<pre>rb - c &gt; 0</pre>
<p>Where r is the <em>relatedness</em> (on a scale of 0 to 1 where 0: no genetic relation, 1:self), b is the <em>benefit</em> of cooperation and c is the cost. This rule, formulated by <a href="http://en.wikipedia.org/wiki/W._D._Hamilton" target="_blank">William Donald Hamilton</a> is a centerpiece of evolutionary biology. Imagine going on a day&#8217;s hunt  where the quarry is a large animal that can feed one hunter for 35 days, but requires at least five hunters to take it down.  Now there are also smaller animals around, that can be hunted by one individual, and they supply enough food for one hunter for two days. Is it beneficial to hunt  alone or together? Let&#8217;s figure the benefits and costs. For hunting the large animal, the one that requires at least five hunters, the benefit is a week of food each (b= 35/5 = 7) while hunting for one day (c=1). If the individuals are cousins sharing an average of 20% of the genetic material  then:</p>
<p>0.2&#215;7 &#8211; 1 = 0.4 is the benefit score</p>
<p>If they are siblings, sharing 50% of the genetic material, then:</p>
<p>0.5&#215;7 &#8211; 1 = 2.5 the benefit score is even higher</p>
<p>But what about individual hunting? The benefit of the smaller quarry is is 2 days worth of food, and one day of hunting, and you do it alone. So r=1 (yourself), b=2 and c=1 giving us:</p>
<p>1&#215;2-1 = 1</p>
<p>In this hypothetical model, a group of siblings will cooperate to hunt big game, while cousins would probably hunt smaller game alone. If you want to dig deeper into how Hamilton&#8217;s rule was derived, and further implications of the rule, I recommend <a href="http://brembs.net/hamilton/" target="_blank">this post</a>.</p>
<p><a href="http://bytesizebio.net/wp-content/uploads/2010/07/mammoth.jpg"><img class="alignnone size-full wp-image-3901" title="mammoth" src="http://bytesizebio.net/wp-content/uploads/2010/07/mammoth.jpg" alt="" width="539" height="301" /></a></p>
<p>Any mechanism in evolution is examined through the lens of <em>fitness</em>. Fitness is the relative ability to produce and support viable progeny. So if cooperation increases fitness, we can use the following simple graph to explain the difference between a cooperating and a non-cooperating  individuals in a cooperating population using Hamilton&#8217;s rule:</p>
<div id="attachment_3990" class="wp-caption alignnone" style="width: 310px"><a href="http://bytesizebio.net/wp-content/uploads/2010/08/hamiltons1.png"><img class="size-medium wp-image-3990" title="hamiltons1" src="http://bytesizebio.net/wp-content/uploads/2010/08/hamiltons1-300x278.png" alt="" width="300" height="278" /></a><p class="wp-caption-text">Figure 1: Hamilton&#39;s rule prediction: the fitness of cooperators (blue) and non-cooperators (red) increases as the number of cooperators among social neighbors (x-axis) increases. The slope of both lines is the benefit (b).</p></div>
<p>The benefit, <em>b</em>, is the slope of these two lines. The difference is c. Note that for any given frequency of cooperation in the population, the non-cooperating individuals (red line) have a higher fitness than the cooperating ones (blue line). It seems that it &#8220;pays off&#8221; to be a self-server no matter the social environment you are in, even though you still benefit from being in a cooperating community. Yeah, we all know the type.</p>
<p>But what happens when the difference between cooperating and not cooperating depends on the percentage of cooperators in the population? Not too hard to imagine: if most of the population is playing nicely together and benefiting from it, then this might change the attitude of the selfish individuals more readily then if only a small fraction of the population is cooperating. But as it stands, Hamilton&#8217;s rule does not provide for this type of model. However, the following modification of Hamilton&#8217;s rule does:</p>
<p><strong>r ⋅ b</strong> &#8211; <em>c</em> + <strong>m ⋅ d</strong> &gt; 0</p>
<p>Relatedness,<strong> r</strong>, is now not a <em>scalar</em> (a single number), but a <em>vector</em> (an ordered set of values) <sup> </sup><strong>r</strong> = {<em>r</em><sub>1</sub>, <em>r</em><sub>2</sub>, &#8230;} describing relatedness under different conditions. Ditto the benefit vector,<strong> b</strong>. <strong>b</strong><em> </em>has the coefficients of the equation describing the fitness of non-cooperators as a function of how many neighboring cooperators there are in the population (red lines). In a linear setting (Figure 1), <strong>r</strong> = {<em>r<sub>1</sub></em>} <strong>b</strong>={<em>b<sub>1</sub></em>} and <strong>m⋅d</strong> = 0, collapsing the expanded equation into the classical Hamilton&#8217;s rule.  We won&#8217;t get into <strong>m</strong> and <strong>d</strong> in this post, they are important though, and you should read the paper to understand how they play a role</p>
<p>Expanding them from scalars to vectors enables a richer and more flexible description of Hamilton&#8217;s rule, allowing to describe non-linear relationships like this:</p>
<div id="attachment_3993" class="wp-caption alignnone" style="width: 310px"><a href="http://bytesizebio.net/wp-content/uploads/2010/08/hamiltons2.png"><img class="size-medium wp-image-3993" title="hamiltons2" src="http://bytesizebio.net/wp-content/uploads/2010/08/hamiltons2-300x265.png" alt="" width="300" height="265" /></a><p class="wp-caption-text">Figure 2: Note two things. First, the relationship between fitness and the fraction of cooperators in the population is not linear. Second, the difference in fitness between cooperators and non-cooperators decreases as the fraction of cooperators in the population goes up. These two phenomena cannot be described by the classic Hamilton&#39;s rule equation. They can be described using the modified rule.</p></div>
<p>This modification of Hamilton&#8217;s rule was developed by Jeff Smith and colleagues, at the department of Biology at Indiana University. Armed with the new equation, Smith and his colleagues decided to see how well it can be applied. They decided to look at <em>Myxococcus xanthus</em>. <em>M. xanthus</em> bacteria behave normally as long as food is abundant: they swim around and proliferate by cell-division as bacteria do. But when starved, they aggregate, and some cells form resistant spores, while the others die. Some cheating strains sporulate  well when in cooperating populations, but do poorly on their own. The scientists mixed a cooperator strain with a cheating strain at different frequencies, starved them, and measured the fraction of each strain in the population of surviving spores. They found the following: first, the fitness effect was non-linear; in fact, it was almost exponential. Second, cooperators were more fit than cheaters at low cooperator frequencies, but cheaters fared better at high cooperator frequencies. So it pays to freeload when most people around you behave nicely. In the case of <em>M. xanthus</em>, the added value to the population is quite high. In fact, the scientists found that cooperation in <em>M. xanthus</em> is very robust and  resistant  to cheating:  cheaters were viable (i.e. had a positive fitness)  only with groups that had more  than 70% cooperators. So it is only when cheaters have a large cooperating population to buffer their nasty habits that a they can thrive.</p>
<div id="attachment_4004" class="wp-caption alignnone" style="width: 310px"><a href="http://bytesizebio.net/wp-content/uploads/2010/08/hamilton-xanthus.png"><img class="size-medium wp-image-4004" title="hamilton-xanthus" src="http://bytesizebio.net/wp-content/uploads/2010/08/hamilton-xanthus-300x267.png" alt="" width="300" height="267" /></a><p class="wp-caption-text">Figure 3: Relative fitness of cooperators (blue) and cheaters (red) in a populations with different relative frequencies of cooperators. Note that the fitness scale is logarithmic: the fitness increase is very much non-linear, as in Figure 2.</p></div>
<p>Moral of this story: if you got to cheat, make sure there are a lot of nice people around. Otherwise it won&#8217;t work out very well.  In evolutionary terms, the  trait for cooperation and kin selection has evolved to become strongly entrenched, so much that cheaters can only survive if cushioned by a high frequency of cooperators. Favoring your own and acting selflessly towards them seems to be the way to go, in the case of <em>M. xanthus</em>.</p>
<hr /><span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.jtitle=Science&amp;rft_id=info%3Adoi%2F10.1126%2Fscience.1189675&amp;rfr_id=info%3Asid%2Fresearchblogging.org&amp;rft.atitle=A+Generalization+of+Hamilton%27s+Rule+for+the+Evolution+of+Microbial+Cooperation&amp;rft.issn=0036-8075&amp;rft.date=2010&amp;rft.volume=328&amp;rft.issue=5986&amp;rft.spage=1700&amp;rft.epage=1703&amp;rft.artnum=http%3A%2F%2Fwww.sciencemag.org%2Fcgi%2Fdoi%2F10.1126%2Fscience.1189675&amp;rft.au=smith%2C+J.&amp;rft.au=Van+Dyken%2C+J.&amp;rft.au=Zee%2C+P.&amp;rfe_dat=bpr3.included=1;bpr3.tags=Biology%2CBehavioral+Biology%2C+Microbiology+%2C+Computational+Biology">smith, J., Van Dyken, J., &amp; Zee, P. (2010). A Generalization of Hamilton&#8217;s Rule for the Evolution of Microbial Cooperation <span style="font-style: italic;">Science, 328</span> (5986), 1700-1703 DOI: <a rev="review" href="http://dx.doi.org/10.1126/science.1189675">10.1126/science.1189675</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/08/27/when-is-it-a-good-idea-to-cheat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2010 Homology High-Low Count</title>
		<link>http://bytesizebio.net/index.php/2010/08/25/2010-homology-high-low-count/</link>
		<comments>http://bytesizebio.net/index.php/2010/08/25/2010-homology-high-low-count/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 23:12:27 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[Biology]]></category>
		<category><![CDATA[homology]]></category>
		<category><![CDATA[peeves]]></category>
		<category><![CDATA[similarity]]></category>
		<category><![CDATA[terminology]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=3980</guid>
		<description><![CDATA[Previously on our show: &#8216; Homology is Not a Quantitative Term&#8216;. Homology is a drop-in replacement for the  &#8220;common ancestry&#8221;. It does not make any sense to say &#8220;low common ancestry&#8221; &#8220;high common ancestry&#8221; &#8220;micro common ancestry&#8221; or (egads!) &#8220;70% common ancestry&#8221;. You cannot be 70% homologous any more than you can be 70% pregnant. [...]]]></description>
			<content:encoded><![CDATA[<p>Previously on our show: &#8216; <a href="http://bytesizebio.net/index.php/2009/07/15/distant-homology-and-being-a-little-pregnant/" target="_blank">Homology is Not a Quantitative Term</a>&#8216;. <em>Homology</em> is a drop-in replacement for the  &#8220;common ancestry&#8221;. It does not make any sense to say &#8220;low common ancestry&#8221; &#8220;high common ancestry&#8221; &#8220;micro common ancestry&#8221; or (egads!) &#8220;70% common ancestry&#8221;. You cannot be 70% homologous any more than you can be 70% pregnant.</p>
<p>Why am I harping on this again?  Because the term &#8220;low homology&#8221; managed to sneak itself, of all places, into the title of a <a href="http://dx.doi.org/10.1093/bioinformatics/btq192 " target="_blank">paper published in <em>Bioinformatics</em></a>.  Ouch. Bioinformaticians should know better.</p>
<p>Just for kicks, I decided to look at how many papers were published this year (January 1 through today)  using the misuse of terms in their title or abstract. Here are the results:</p>
<ul>
<li>&#8220;high homology&#8221;  134</li>
<li>&#8220;low homology&#8221;: 13 (well, that&#8217;s low)</li>
<li>&#8220;highly homologous&#8221;: 140</li>
<li>&#8220;distant homologs&#8221;: 7</li>
<li>&#8220;close homologs&#8221;: 7</li>
<li>&#8220;percent homology&#8221;: 1</li>
</ul>
<p>I could not find others such as &#8220;weak homologs&#8221;, &#8220;strong homologs&#8221;. Small mercies. Well, there is some work to do still in removing bad habits.</p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/08/25/2010-homology-high-low-count/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Actually, Frank is the best dinosaur</title>
		<link>http://bytesizebio.net/index.php/2010/08/11/actually-frank-is-the-best-dinosaur/</link>
		<comments>http://bytesizebio.net/index.php/2010/08/11/actually-frank-is-the-best-dinosaur/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 20:10:20 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[Blues]]></category>
		<category><![CDATA[dinosaurs]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=3970</guid>
		<description><![CDATA[Last week I posted a video of Dan Telfer arguing with his audience over who is the best dinosaur. Well,  The Black Keys, a blues band from Akron, Ohio came up with the best dinosaur. His name is Frank, and he is a Funkasaurus rex. See and, more importantly, listen for yourselves. Epic dino-slide is [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I posted a video of <a href="http://bytesizebio.net/index.php/2010/08/06/and-the-best-dinosaur-is/" target="_blank">Dan Telfer arguing with his audience</a> over who is the best dinosaur. Well,  The <a href="http://www.theblackkeys.com/" target="_blank">Black Keys</a>, a blues band from Akron, Ohio came up with the best dinosaur. His name is Frank, and he is a <em>Funkasaurus rex</em>. See and, more importantly, <em>listen</em> for yourselves. Epic dino-slide is epic. Tighten Up!</p>
<p><strong>Update:</strong> the video embedding has been disabled. You can still <a href="http://www.youtube.com/watch?v=DNXwicxlsvI" target="_blank">watch it on YouTube</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="580" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/DNXwicxlsvI&amp;hl=en_US&amp;fs=1?rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="580" height="360" src="http://www.youtube.com/v/DNXwicxlsvI&amp;hl=en_US&amp;fs=1?rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/08/11/actually-frank-is-the-best-dinosaur/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Goat breath causes aphids to drop to the ground</title>
		<link>http://bytesizebio.net/index.php/2010/08/09/goat-breath-causes-aphids-to-drop-to-the-ground/</link>
		<comments>http://bytesizebio.net/index.php/2010/08/09/goat-breath-causes-aphids-to-drop-to-the-ground/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 22:49:12 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[Biology]]></category>
		<category><![CDATA[Ecology]]></category>
		<category><![CDATA[Evolution]]></category>
		<category><![CDATA[Zoology]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[aphids]]></category>
		<category><![CDATA[behavioral biology]]></category>
		<category><![CDATA[goats]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=3953</guid>
		<description><![CDATA[Some headlines just write themselves&#8230; It has been known for some time that an approaching large herbivore causes aphids to abandon ship &#8230;err plant. Makes sense since, after all, there&#8217;s not much of a point in staying on the particular bit of shrubbery that will be consumed, lock, stalk and barrel by a ravenous forager. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="float: left; padding: 5px;"><a href="http://www.researchblogging.org"><img style="border: 0;" src="http://www.researchblogging.org/public/citation_icons/rb2_large_gray.png" alt="ResearchBlogging.org" /></a></span></p>
<p>Some headlines just write themselves&#8230;</p>
<p>It has been known for some time that an approaching large herbivore causes aphids to abandon ship &#8230;err plant. Makes sense since, after all, there&#8217;s not much of a point in staying on the particular bit of shrubbery that will be consumed, lock, stalk and barrel by a ravenous forager. However, it was not exactly clear what in the herbivore causes the aphids to drop. Well, it is not the shaking of the twigs, as rustling the plant did not cause a substantial number of the aphids to drop. Rather, it&#8217;s the breath. The researchers had a human, a sheep and goat all breath on an aphid-infested plant, with equal results: the aphids dropped from the plant <em>en-masse</em>. But what in the breath causes aphids to do that? Well, it is not the CO<sub>2</sub> nor the air movement itself. Rather, the heat and the humidity of the breathing, as tested by Moshe Gish and his colleagues at the University of Haifa.</p>
<p><a href="http://bytesizebio.net/wp-content/uploads/2010/08/goat-breath.jpg"><img class="alignnone size-large wp-image-3956" title="Untitled" src="http://bytesizebio.net/wp-content/uploads/2010/08/goat-breath-653x1024.jpg" alt="" width="588" height="922" /></a></p>
<p>This is a great example of adaptation: after all, bush movement may be due to many different factors, including uninterested rodents and carnivores. Also, air movement can be simply caused by wind, including hot or humid air.  But someone breathing directly on you, hot <em>and</em> damp can only mean one thing to an aphid: abandon plant or be goat dinner!</p>
<hr /><span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.jtitle=Current+Biology&amp;rft_id=info%3A%2F&amp;rfr_id=info%3Asid%2Fresearchblogging.org&amp;rft.atitle=Mammalian+herbivore+breath+alerts+aphids+to+flee+host+plant&amp;rft.issn=&amp;rft.date=2010&amp;rft.volume=20&amp;rft.issue=15&amp;rft.spage=0&amp;rft.epage=0&amp;rft.artnum=http%3A%2F%2Fwww.cell.com%2Fcurrent-biology%2Fabstract%2FS0960-9822%2810%2900813-4&amp;rft.au=Moshe+Gish&amp;rft.au=Amots+Dafni&amp;rft.au=Moshe+Inbar&amp;rfe_dat=bpr3.included=1;bpr3.tags=Biology%2CBehavioral+Biology%2C+Ecology%2C+Zoology%2C+Agriculture">Moshe Gish, Amots Dafni, &amp; Moshe Inbar (2010). <a href="http://www.cell.com/current-biology/abstract/S0960-9822(10)00813-4">Mammalian herbivore breath alerts aphids to flee host plant</a> <span style="font-style: italic;">Current Biology, 20</span> (15) R628-R629</span></p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/08/09/goat-breath-causes-aphids-to-drop-to-the-ground/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feynman uses chess to explain science</title>
		<link>http://bytesizebio.net/index.php/2010/08/09/feynman-uses-chess-to-explain-science/</link>
		<comments>http://bytesizebio.net/index.php/2010/08/09/feynman-uses-chess-to-explain-science/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 16:02:39 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[Chess]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[Richard Feynman]]></category>
		<category><![CDATA[Science education]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=3951</guid>
		<description><![CDATA[YouTube is chock-a-block with vids of Richard Feynman. I love the way he uses analogies to explain science. Here is one of my favorites, the discovery of natural laws as viewing a chess game.]]></description>
			<content:encoded><![CDATA[<p>YouTube is chock-a-block with <a href="http://www.youtube.com/results?search_query=feynman&#038;aq=f">vids</a> of Richard Feynman. I love the way he uses analogies to explain science. Here is one of my favorites, the discovery of natural laws as viewing a chess game.</p>
<p><object width="445" height="364"><param name="movie" value="http://www.youtube.com/v/o1dgrvlWML4&amp;hl=en_US&amp;fs=1?rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/o1dgrvlWML4&amp;hl=en_US&amp;fs=1?rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="445" height="364"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/08/09/feynman-uses-chess-to-explain-science/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>And the best dinosaur is&#8230;</title>
		<link>http://bytesizebio.net/index.php/2010/08/06/and-the-best-dinosaur-is/</link>
		<comments>http://bytesizebio.net/index.php/2010/08/06/and-the-best-dinosaur-is/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 19:58:50 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[funny]]></category>
		<category><![CDATA[dinosaurs]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=3947</guid>
		<description><![CDATA[Not only the funniest, but also the best-informed rant on dinosaurs I have ever heard. OK, I only heard this one, but it cracked me up. NSFW language.]]></description>
			<content:encoded><![CDATA[<p>Not only the funniest, but also the best-informed rant on dinosaurs I have ever heard. OK, I only heard this one, but it cracked me up. NSFW language.</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/4vSY_rB928c&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4vSY_rB928c&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/08/06/and-the-best-dinosaur-is/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Baby Sloths</title>
		<link>http://bytesizebio.net/index.php/2010/08/05/baby-sloths/</link>
		<comments>http://bytesizebio.net/index.php/2010/08/05/baby-sloths/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 17:38:26 +0000</pubDate>
		<dc:creator>Iddo</dc:creator>
				<category><![CDATA[Zoology]]></category>
		<category><![CDATA[cute]]></category>
		<category><![CDATA[sloths]]></category>

		<guid isPermaLink="false">http://bytesizebio.net/?p=3938</guid>
		<description><![CDATA[These are just ridiculously cute, I had to put them in. The sloth counterpart of Marilyn Manson appears at the end. A few interesting facts about sloths (edited from Wikipedia): Look at your forearm. Your hair grows towards your hand. In most mammals hair grows towards their extremities. In sloths, hair grows in the opposite [...]]]></description>
			<content:encoded><![CDATA[<p>These are just ridiculously cute, I had to put them in. The sloth counterpart of Marilyn Manson appears at the end.</p>
<p>A few interesting facts about sloths (edited from Wikipedia):</p>
<ul>
<li>Look at your forearm. Your hair grows towards your hand. In most mammals hair grows towards their extremities. In sloths, hair grows in the opposite direction.</li>
<li>Sloth metabolic rate is very slow, their body temperature is as low as 30C, and they move very slowly and only when necessary. Which makes them perfectly suited for government jobs</li>
<li>Because of their low metabolic rate, they only go to the bathroom once a week.</li>
<li> Almost all mammals have seven cervical vertebrae (neck vertebrae). This has nothing to do with neck length: both a giraffe and the <a href="http://bytesizebio.net/wp-content/uploads/2010/08/6918-16191.gif" target="_blank">narrator at the Rocky Horror Picture Show</a> have seven neck vertebrae. Two-toed sloths have only six cervical vertebrae, and three-toed sloths have nine cervical vertebrae</li>
</ul>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="320" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=11712103&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00ad00&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed type="application/x-shockwave-flash" width="400" height="320" src="http://vimeo.com/moogaloop.swf?clip_id=11712103&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00ad00&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/11712103">Meet the sloths</a> from <a href="http://vimeo.com/user2714304">Amphibian Avenger</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bytesizebio.net/index.php/2010/08/05/baby-sloths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
