<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Biorelated</title>
	<atom:link href="http://biorelated.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://biorelated.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Apr 2012 00:12:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='biorelated.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/41054b22bbe7debbf1d63972772e21fa?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Biorelated</title>
		<link>http://biorelated.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://biorelated.com/osd.xml" title="Biorelated" />
	<atom:link rel='hub' href='http://biorelated.com/?pushpress=hub'/>
		<item>
		<title>Announcing scribl-rails</title>
		<link>http://biorelated.com/2012/02/20/announcing-scribl-rails/</link>
		<comments>http://biorelated.com/2012/02/20/announcing-scribl-rails/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 17:12:25 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[biographics]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=468</guid>
		<description><![CDATA[Sometimes back I had mentioned about scribl javascript framework for drawing bioinformatics glyphs on HTML5 canvas. If you are a Rails developer you will be happy to know that I have written  scribl-rails, an asset helper for including scribl in your application asset pipeline. Usage Add the following to your gemfile: gem 'scribl-rails' ran bundle [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=468&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="attachment_470" class="wp-caption aligncenter" style="width: 650px"><a href="http://biorelated.files.wordpress.com/2012/02/screen-shot-2012-02-20-at-20-00-09.png"><img class="size-full wp-image-470 " title="scribl example glyphs" src="http://biorelated.files.wordpress.com/2012/02/screen-shot-2012-02-20-at-20-00-09.png?w=640&#038;h=61" alt="" width="640" height="61" /></a><p class="wp-caption-text">PfEMP1 domains drawn with scribl</p></div>
<p>Sometimes back I had mentioned about <a title="Scribl" href="http://chmille4.github.com/Scribl/" target="_blank">scribl javascript framework</a> for drawing bioinformatics glyphs on HTML5 canvas. If you are a Rails developer you will be happy to know that I have written <a title="Scribl-rails" href="https://rubygems.org/gems/scribl-rails" target="_blank"> scribl-rails</a>, an asset helper for including scribl in your application asset pipeline.</p>
<h3>Usage</h3>
<p>Add the following to your gemfile:</p>
<pre><code>gem 'scribl-rails' </code></pre>
<p>ran bundle install from the application directory</p>
<p>Add the following directive to your Javascript manifest file (application.js):</p>
<pre><code>//= require scribl </code></pre>
<p>Enjoy using scribl-rails and creating cute bio-graphics! Many thanks to Chase Miller for the awesome library!</p>
<p>For more<a title="Scribl-rails" href="https://github.com/georgeG/scribl-rails" target="_blank"> information and development check out the scribl-rails </a>at github</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/468/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=468&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2012/02/20/announcing-scribl-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2012/02/screen-shot-2012-02-20-at-20-00-09.png" medium="image">
			<media:title type="html">scribl example glyphs</media:title>
		</media:content>
	</item>
		<item>
		<title>Goodbye Steve Jobs</title>
		<link>http://biorelated.com/2011/10/06/goodbye-steve-jobs/</link>
		<comments>http://biorelated.com/2011/10/06/goodbye-steve-jobs/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 19:19:51 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=435</guid>
		<description><![CDATA[                                                                        Steve Jobs 1955 &#8211; 2011 You inspired and awed with equal measure. I admired your insight,courage and knack for walking along the unbeaten path.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=435&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><a href="http://biorelated.files.wordpress.com/2011/10/steve_jobs.png"><img class="aligncenter size-medium wp-image-436" title="Steve_Jobs" src="http://biorelated.files.wordpress.com/2011/10/steve_jobs.png?w=300&#038;h=273" alt="" width="300" height="273" /></a><strong>                                   </strong></h1>
<h1><strong>                                     Steve Jobs 1955 &#8211; 2011</strong></h1>
<h4>You inspired and awed with equal measure. I admired your insight,courage and knack for walking along the unbeaten path.</h4>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/435/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=435&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/10/06/goodbye-steve-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/10/steve_jobs.png?w=300" medium="image">
			<media:title type="html">Steve_Jobs</media:title>
		</media:content>
	</item>
		<item>
		<title>Use Scribl to draw genomic glyphs on HTML5 canvas</title>
		<link>http://biorelated.com/2011/09/20/use-scribl-to-draw-genomic-glyphs-on-html5-canvas/</link>
		<comments>http://biorelated.com/2011/09/20/use-scribl-to-draw-genomic-glyphs-on-html5-canvas/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 13:49:36 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[biographics]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=345</guid>
		<description><![CDATA[The Scribl library by Chase Miller is an awesome and a promising Javascript library for visualizing biological sequence information and rendering it on the web. Scribl  generates biological charts of genomic regions, alignments, and assembly data. The library is under continuous development and I have been able to use it for some internal projects! A [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=345&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://biorelated.files.wordpress.com/2011/09/screen-shot-2011-09-20-at-16-51-58.png"><img class="aligncenter size-medium wp-image-431" title="Scrible glyphs" src="http://biorelated.files.wordpress.com/2011/09/screen-shot-2011-09-20-at-16-51-58.png?w=449&#038;h=173" alt="" width="449" height="173" /></a><a title="Scribl" href="https://github.com/chmille4/Scribl" target="_blank">The Scribl library </a>by Chase Miller is an awesome and a promising Javascript library for visualizing biological sequence information and rendering it on the web. <a title="Scribl" href="http://chmille4.github.com/Scribl/" target="_blank">Scribl </a> generates biological charts of genomic regions, alignments, and assembly data. The library is under continuous development and I have been able to use it for some internal projects!</p>
<p>A very nice list of examples and introduction is available at the <a title="Scribl home page" href="http://chmille4.github.com/Scribl/" target="_blank">home page</a> and the <a title="Scribl wiki" href="https://github.com/chmille4/Scribl/wiki" target="_blank">wiki provides an elaborate user guide</a>!</p>
<p>Happy biology!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=345&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/09/20/use-scribl-to-draw-genomic-glyphs-on-html5-canvas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/09/screen-shot-2011-09-20-at-16-51-58.png?w=300" medium="image">
			<media:title type="html">Scrible glyphs</media:title>
		</media:content>
	</item>
		<item>
		<title>Keep track of Bioruby plugins</title>
		<link>http://biorelated.com/2011/08/26/keep-track-of-bioruby-plugins/</link>
		<comments>http://biorelated.com/2011/08/26/keep-track-of-bioruby-plugins/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 19:39:27 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=413</guid>
		<description><![CDATA[Biogems.info is a new site for keeping track of new and existing Bioruby plugins. Plugins are separate code libraries that split functionality out of the Bioruby main tree. The idea is to have a core Bioruby release and to allow Ruby developers to contribute to Bioruby through plugins. According to Bonnal, the maintainer of biogem (the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=413&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="Biogems" href="http://www.biogems.info/">Biogems.info </a>is a new site for keeping track of new and existing Bioruby plugins. Plugins are separate code libraries that split functionality out of the Bioruby main tree. The idea is to have a core Bioruby release and to allow Ruby developers to contribute to Bioruby through plugins. According to Bonnal, the maintainer of biogem (the bio-plugin crafting tool),  plugins are separately maintained and may represent experimental or work in progress.</p>
<p>To read more about Bioruby plugin system please refer to <a title="bioruby plugins" href="http://bioruby.open-bio.org/wiki/Plugins" target="_blank">the wiki page on plugins.</a></p>
<p>Happy biology!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/413/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=413&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/08/26/keep-track-of-bioruby-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>
	</item>
		<item>
		<title>Bioruby 1.4.2 released!</title>
		<link>http://biorelated.com/2011/08/26/bioruby-1-4-2-released/</link>
		<comments>http://biorelated.com/2011/08/26/bioruby-1-4-2-released/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 19:27:36 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=409</guid>
		<description><![CDATA[The Bioruby development team has continued to work tirelessly to bring us the latest release of the Ruby bioinformatics library commonly referred to as bioruby. A list of all the new changes is available  here . One of the most pleasant news for beginners is that the Bioruby tutorial has been updated thanks to Michael [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=409&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Bioruby development team has continued to work tirelessly to bring us the latest release of the Ruby bioinformatics library commonly referred to as bioruby. A list of all the new changes is available  <a title="Changelog" href="https://github.com/bioruby/bioruby/blob/1.4.2/ChangeLog">here</a> . One of the most pleasant news for beginners is that the Bioruby tutorial has been updated thanks to Michael O&#8217;Keefe and Pjotr Prins. The Release is largely a bug fix release with updates on web services from SOAP to REST interfaces. Upgrading to the latest release is easy&#8230;<br />
<code>gem update bio</code><br />
or<br />
<code>gem install bio</code></p>
<p>Happy biology!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=409&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/08/26/bioruby-1-4-2-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>
	</item>
		<item>
		<title>Processing netMHCII-pan prediction output</title>
		<link>http://biorelated.com/2011/08/25/processing-netmhcii-pan-prediction-output/</link>
		<comments>http://biorelated.com/2011/08/25/processing-netmhcii-pan-prediction-output/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 07:34:28 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=391</guid>
		<description><![CDATA[Like most informatics throughput methods, epitope prediction generates a lot of output and in a not so friendly format suitable for subsequent analysis. I considered writing a parser for the output using Ruby, but would that not take long? A simple vim function that I added to my .vimrc file to format the output and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=391&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Like most informatics throughput methods, epitope prediction generates a lot of output and in a not so friendly format suitable for subsequent analysis. I considered writing a parser for the output using Ruby, but would that not take long? A simple vim function that I added to my .vimrc file to format the output and use a single keystroke worked the magic and saved time. </p>
<p><pre class="brush: plain;">
&quot; formating output from netMHCII-pan program
function! FormatNetmhcOutput()
   g/^\#/norm dd 
   g/^--/norm dd
   g/^Protein/norm dd
   %le
   g/^pos/norm dd
   %s/&lt;=\sWB//g
   %s/&lt;=\sSB//g
   %s/\s\+$//
   %s/\s\+/,/g
   g/^$/d
endfunction
nmap   ;h  :call FormatNetmhcOutput()
</pre><br />
This function can be called by pressing the ; and h key when in normal mode. It removes comments and provides a csv output that can be read with a simple R directive. </p>
<p><pre class="brush: r;">data &lt;– read.csv(&quot;file.csv&quot;) </pre></p>
<p>sample output<br />
<a href="http://biorelated.files.wordpress.com/2011/08/screen-shot-2011-08-25-at-09-15-56.png"><img src="http://biorelated.files.wordpress.com/2011/08/screen-shot-2011-08-25-at-09-15-56.png?w=300&#038;h=69" alt="" title="Screen shot 2011-08-25 at 09.15.56" width="300" height="69" class="aligncenter size-medium wp-image-398" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=391&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/08/25/processing-netmhcii-pan-prediction-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/08/screen-shot-2011-08-25-at-09-15-56.png?w=300" medium="image">
			<media:title type="html">Screen shot 2011-08-25 at 09.15.56</media:title>
		</media:content>
	</item>
		<item>
		<title>Convert a fastA file to a hash</title>
		<link>http://biorelated.com/2011/06/25/convert-a-fasta-file-to-a-hash/</link>
		<comments>http://biorelated.com/2011/06/25/convert-a-fasta-file-to-a-hash/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 18:41:51 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=358</guid>
		<description><![CDATA[Sometimes you might want to convert a file of fastA sequences to a hash. Here is a one line method that might come handy for that. The result is an array of hashes. Each hash key corresponds to the sequence name<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=358&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes you might want to convert a file of fastA sequences to a hash. Here is a one line method that might come handy for that.<br />
<pre class="brush: ruby;">
require 'bio'
file_path = &quot;example.fasta&quot;

def fasta_to_hash
  Bio::FlatFile.auto(file_path){ |f| f.map {|entry| Hash.[](entry.definition.to_sym,[entry.seq.to_s])}}
end

 #=&gt;[{:&quot;seq1&quot;=&gt;[&quot;gatataggagatatcgttagag&quot;]}]
</pre></p>
<p>The result is an array of hashes. Each hash key corresponds to the sequence name</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=358&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/06/25/convert-a-fasta-file-to-a-hash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>
	</item>
		<item>
		<title>My general purpose bioinformatics toolbox</title>
		<link>http://biorelated.com/2011/02/07/my-general-purpose-bioinformatics-toolbox/</link>
		<comments>http://biorelated.com/2011/02/07/my-general-purpose-bioinformatics-toolbox/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 08:11:21 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=309</guid>
		<description><![CDATA[I spend most of my time writing code and using an range of bioinformatics analysis packages. Unlike in many other professions, sometimes  there are no best tools for accomplishing a bioinformatics task. The tools are continuously improved and the choice of tools is dependent on the research question and the biology of whatever you are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=309&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I spend most of my time writing code and using an range of bioinformatics analysis packages. Unlike in many other professions, sometimes  there are no best tools for accomplishing a bioinformatics task. The tools are continuously improved and the choice of tools is dependent on the research question and the biology of whatever you are investigating. However  I have come to rely on some general purpose resources that make me more productive. Let me introduce you to my general purpose spanner box.</p>
<p><strong>Code Editing</strong></p>
<p><strong> </strong></p>
<div id="attachment_310" class="wp-caption alignnone" style="width: 310px"><strong><strong><a href="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-33-17.png"><img class="size-medium wp-image-310" title="Macvim_screenshot" src="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-33-17.png?w=300&#038;h=185" alt="" width="300" height="185" /></a></strong></strong><p class="wp-caption-text">Macvim</p></div>
<p>I have finally found nirvana in <a title="Macvim" href="https://github.com/b4winckler/macvim" target="_blank">MacVim</a>, which is the preferred version of  Vim for Mac OS. It allows screen splitting, window resizing and integrates with the console, such that you can run system commands right in the editor. You have to install the necessary scripts or plugins to support what you want to do.</p>
<p>It has increased my productivity, although it has a slightly steep learning curve.  This is a tool I recommend to any bioinformatician, if you are not already using it!</p>
<p><em>Cost: Free</em></p>
<p><strong>Source Control</strong></p>
<p><strong> </strong></p>
<div id="attachment_312" class="wp-caption alignnone" style="width: 310px"><strong><strong><a href="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-46-24.png"><img class="size-medium wp-image-312" title="Screen shot 2011-02-06 at 15.46.24" src="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-46-24.png?w=300&#038;h=38" alt="Git" width="300" height="38" /></a></strong></strong><p class="wp-caption-text">Git Source control</p></div>
<p>I use<a title="Git" href="http://git-scm.com/" target="_blank"> git for source control.</a> It is awesome and fits very well with my workflow. Git has powerful features and easy to use and work with. I like the idea of distributed source control and it makes it easier to work on different versions of the same project!<strong> </strong></p>
<p><em>Cost: Free</em></p>
<p><strong>Bibliography manager</strong></p>
<p><strong> </strong></p>
<div id="attachment_313" class="wp-caption alignnone" style="width: 285px"><strong><strong><a href="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-50-44.png"><img class="size-medium wp-image-313" title="Papers_screenshot" src="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-50-44.png?w=275&#038;h=172" alt="Papers" width="275" height="172" /></a></strong></strong><p class="wp-caption-text">Papers</p></div>
<p>I use<a title="Papers" href="http://mekentosj.com/papers/" target="_blank"> Papers</a>, which is a commercial tool but I would recommend it to anyone. It helps me sort,annotate and read research articles. I once used <a title="Mendeley" href="http://www.mendeley.com/" target="_blank">Mendeley</a>, which is an awesome tool as well.</p>
<p><em>Cost: $42 (has academic discounts)</em></p>
<p><strong>Terminal</strong></p>
<p><strong> </strong></p>
<div id="attachment_315" class="wp-caption alignnone" style="width: 282px"><strong><strong><a href="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-56-24.png"><img class="size-medium wp-image-315" title="the terminal screenshot" src="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-56-24.png?w=272&#038;h=69" alt="terminal" width="272" height="69" /></a></strong></strong><p class="wp-caption-text">terminal</p></div>
<p><strong> </strong>One of the best tools which we may forget is a tool is the terminal! Since I use Mac OS, I enjoy the best of both worlds, a powerful Unix command line support, excellent graphics and support for proprietary software if need arises.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><strong>Pen</strong></p>
<div id="attachment_324" class="wp-caption alignnone" style="width: 310px"><a href="http://biorelated.files.wordpress.com/2011/02/pilot-vballrt07-bk.jpg"><img class="size-medium wp-image-324" title="Pilot-VBallRT07-bk" src="http://biorelated.files.wordpress.com/2011/02/pilot-vballrt07-bk.jpg?w=300&#038;h=34" alt="Pilot V Ball RT Pen" width="300" height="34" /></a><p class="wp-caption-text">Pen</p></div>
<p>I don&#8217;t keep an electronic notebook since I prefer jotting down my notes and having a Notebook. I use a liquid ink <a title="Pilot V ball RT" href="http://www.cultpens.com/acatalog/Pilot-V-Ball-RT.html#a8444" target="_blank">Pilot V ball RT pen.</a> The pen has a retractable cone-tip liquid ink rollerball, rubber grip and metal pocket clip.  It is airplane-safe and  writes a 0.4mm line. <strong> </strong></p>
<p><em>Cost: $5</em></p>
<p><strong>NoteBook.</strong></p>
<div id="attachment_325" class="wp-caption alignleft" style="width: 156px"><a href="http://biorelated.files.wordpress.com/2011/02/d66174.jpg"><img class="size-full wp-image-325" title="D66174 Notebook" src="http://biorelated.files.wordpress.com/2011/02/d66174.jpg?w=640" alt="NoteBook"   /></a><p class="wp-caption-text">D66174 NoteBook</p></div>
<p>My preference for a notebook is an <a title="D66176 NoteBook" href="http://www.ukofficedirect.co.uk/oxford-black-n-red-a4-prd_D66174.aspx" target="_blank"> A4  D66174 Notebook</a>.  Each book has about 180 pages.  It comes with a protective handcover. This is an archive for my written thoughts, discussions and workflows.</p>
<p><em>Cost $90 for a pack of five books.</em></p>
<p>What is your general purpose  bioinformatics toolbox?<strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=309&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/02/07/my-general-purpose-bioinformatics-toolbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-33-17.png?w=300" medium="image">
			<media:title type="html">Macvim_screenshot</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-46-24.png?w=300" medium="image">
			<media:title type="html">Screen shot 2011-02-06 at 15.46.24</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-50-44.png?w=300" medium="image">
			<media:title type="html">Papers_screenshot</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/02/screen-shot-2011-02-06-at-15-56-24.png?w=300" medium="image">
			<media:title type="html">the terminal screenshot</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/02/pilot-vballrt07-bk.jpg?w=300" medium="image">
			<media:title type="html">Pilot-VBallRT07-bk</media:title>
		</media:content>

		<media:content url="http://biorelated.files.wordpress.com/2011/02/d66174.jpg" medium="image">
			<media:title type="html">D66174 Notebook</media:title>
		</media:content>
	</item>
		<item>
		<title>Translating a nucleotide sequence in six frames with bioruby</title>
		<link>http://biorelated.com/2011/02/02/translating-a-nucleotide-sequence-in-six-frames-with-bioruby/</link>
		<comments>http://biorelated.com/2011/02/02/translating-a-nucleotide-sequence-in-six-frames-with-bioruby/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 12:18:53 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[bioruby]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=297</guid>
		<description><![CDATA[Bioruby offers a very easy and simple way to translate nucleotide sequences. seq= Bio::Sequence::NA.new("acctatagctctagcta") seq.translate We know that there are six posible reading frames for any given nucleotide sequence. Generally the longests Open reading frame is taken to be the correct frame, when we do not have information about the possible protein that is encoded [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=297&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Bioruby offers a very easy and simple way to translate nucleotide sequences.</p>
<pre>seq= Bio::Sequence::NA.new("acctatagctctagcta")</pre>
<pre>seq.translate</pre>
<p>We know that there are six posible reading frames for any given nucleotide sequence. Generally the longests Open reading frame is taken to be the correct frame, when we do not have information about the possible protein that is encoded by a given gene. By default the translate method performs translation in the first frame but it can take an argument that defines the translation frame</p>
<pre>seq.translate(2) #translate using the second reading frame.</pre>
<p>Given a long list of sequences how do we quickly determine the correct reading frame. We would want to have method to translate a given  sequence in all frames and pick the longest reading frame. Assuming that the correct reading frame has no stop codons, we can write a quick method to perform  the six frame translation.</p>
<pre> def longest_reading_frame(sequence)
  orfs = [] #a container for orfs(open reading frames)
  #translate a sequence in all 6 frames
   6.times do |frame|
   translated = Bio::Sequence::NA.new(sequence).translate(frame + 1)
   stop_codons = translated.scan(/\*/).size
    orfs &lt;&lt; translated if stop_codons == 0
   end
  orfs[0]
end</pre>
<p>This method uses an array to collect all translated sequences that contain no stop codons and returns the first sequence in the array. This might not scale very well for very long sequences but that will be a post for another day!</p>
<p>Happy Biology!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/297/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=297&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/02/02/translating-a-nucleotide-sequence-in-six-frames-with-bioruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting sequence data from csv to fasta format</title>
		<link>http://biorelated.com/2011/01/26/converting-sequence-data-from-csv-to-fasta-format/</link>
		<comments>http://biorelated.com/2011/01/26/converting-sequence-data-from-csv-to-fasta-format/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 08:24:07 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[bioruby]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=280</guid>
		<description><![CDATA[Many  times I find someone storing sequence data in excel Workbooks.(insert scream here) This is usually followed by a request which goes like this, Someone: &#8221; I will send you some sequences and then we can perform xyz analysis please?&#8221; Me: &#8220;Are they in fasta format?&#8221; Someone: &#8220;No, they are in Excel &#8220; Me: (supressing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=280&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many  times I find someone storing sequence data in excel Workbooks.(insert scream here) This is usually followed by a request which goes like this,</p>
<p><strong>Someone: </strong>&#8221; I will send you some sequences and then we can perform xyz analysis please?&#8221;</p>
<p><strong>Me: </strong>&#8220;Are they in fasta format?&#8221;</p>
<p><strong>Someone: </strong>&#8220;No, they are in Excel &#8220;</p>
<p><strong>Me: </strong>(<em>supressing a laugh</em>) &#8220;Ok, do you mind to convert them to Fasta and then we can do xyz?&#8221;</p>
<p><strong>Someone:</strong>(<em>with a wiggle on the face</em>)  &#8220;How do I do that?, Is there a windows  program to do that?&#8221;</p>
<p><strong>Me:</strong> (<em>feeling superman-nish</em>) &#8220;eeh we can create a quick script in perl or Ruby, I prefer Ruby &#8230; but you should lean some basic perl or Ruby&#8230;. and run away from windows. :)&#8221;</p>
<p><strong>Me:</strong> &#8220;Save your data as CSV(File -&gt;Save As-&gt; csv),  then send me that file&#8221;</p>
<p>So here is a very simple script that reads a csv file and creates a fasta file using Ruby.</p>
<p>You need to specify the path to the input csv file and the output fasta file, the column number that contains the name of the sequence and the column number that contains the sequence data in the csv file.</p>
<pre>require 'csv'
# read a csv file and create a fasta file
def csv_to_fasta(csv_file,output_file,name_col,seq_col)
  File.open(output_file,'w') do |file|
  count = 0
  CSV.foreach(csv_file) do |row|
   sequence_id = row[name_col]
   seq = row[seq_col]

  count = count+1
  puts sequence_id
  file.puts "&gt;#{sequence_id} \n#{seq}"
 end
 puts "#{count} sequences processed"
end</pre>
<pre>csv_file    = "#{ENV['HOME']}/path_to_csv_file.csv"
fasta_file  = "#{ENV['HOME']}/path_to_fasta_file.fasta"

seq_name_col = 0 #assumes the first column contains the names
seq_data_col = 1 #second column contains the seq data

csv_to_fasta(csv_file,fasta_file,seq_name_col,seq_data_col)</pre>
<p>Happy biology!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/280/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=280&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/01/26/converting-sequence-data-from-csv-to-fasta-format/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9e14f1be0972ff1f393cc87dbd072e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">george_g</media:title>
		</media:content>
	</item>
	</channel>
</rss>
