<?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 &#187; technology</title>
	<atom:link href="http://biorelated.com/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://biorelated.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Jan 2012 06:29:42 +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 &#187; technology</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>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>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>My first Bioruby plugin calculates the isoelectric point of a protein</title>
		<link>http://biorelated.com/2011/01/06/my-first-bioruby-plugin-calculates-the-isoelectric-point-of-a-protein/</link>
		<comments>http://biorelated.com/2011/01/06/my-first-bioruby-plugin-calculates-the-isoelectric-point-of-a-protein/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 18:15:07 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[bioruby]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://biorelated.com/?p=255</guid>
		<description><![CDATA[Late last year,  there was a lot of talk about creating a plugin system for Bioruby. The idea is that more people can start to develop bioinformatics libraries using the Ruby language and the libraries can leverage on the bioruby framework. Bioruby maintainers can then concentrate on yet to be defined &#8220;core&#8221; parts of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=255&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Late last year,  there was a lot of talk about creating a<a title="bioruby plugins" href="http://bioruby.open-bio.org/wiki/Plugins" target="_blank"> plugin system for Bioruby</a>. The idea is that more people can start to develop bioinformatics libraries using the Ruby language and the libraries can leverage on the bioruby framework. Bioruby maintainers can then concentrate on yet to be defined &#8220;core&#8221; parts of the library to ensure compatibility and support for the plugins.Together with Pascal Bentz we have created a library to calculate the Isoelectric point of a protein given a Pka set and an  amino acid sequence of a peptide/protein. The project lay domant for a while at github until now! I am happy to release my first bioruby plugin, bio-isoelectric point! <a title="Bio-isoelectric_point" href="https://rubygems.org/gems/bio-isoelectric_point" target="_blank">Download it at rubygems.org</a> <a title="bioruby-isoelectric-point" href="https://github.com/georgeG/bioruby-isoelectric_point" target="_blank">Fork it and check the usage at github </a></p>
<p>Examples<br />
<code><br />
require 'bio'<br />
require 'bio-isoelectric_point'<br />
protein_seq = Bio::Sequence::AA.new("KKGFTCGELA")</code></p>
<p>#what is the protein charge at ph 14?<br />
charge = protein_seq.charge_at(14) #=&gt;-2.999795857467562</p>
<p>#calculate the ph using dtaselect pka set and round off to 3 decimal places<br />
isoelectric_point = protein_seq.isoelectric_point(&#8216;dtaselect&#8217;, 3) #=&gt;8.219</p>
<p># calculate the isoelectric point pH with a custom set<br />
custom_pka_set = { &#8220;N_TERMINUS&#8221; =&gt; 8.1,<br />
&#8220;K&#8221; =&gt; 10.1,<br />
&#8220;R&#8221; =&gt; 12.1,<br />
&#8220;H&#8221; =&gt; 6.4,<br />
&#8220;C_TERMINUS&#8221; =&gt; 3.15,<br />
&#8220;D&#8221; =&gt; 4.34,<br />
&#8220;E&#8221; =&gt; 4.33,<br />
&#8220;C&#8221; =&gt; 8.33,<br />
&#8220;Y&#8221; =&gt; 9.5<br />
}<br />
iep_ph = protein_seq.isoelectric_point(custom_pka_set, 3) #=&gt; 8.193</p>
<p>This gem supports the following Pka sets, as well as allowing a user to provide a custom Pka set.</p>
<pre>    * dta_select
    * emboss
    * rodwell
    * wikipedia
    * sillero</pre>
<p>Happy biology!</p>
<p><a title="Bio-isoelectric_point" href="https://rubygems.org/gems/bio-isoelectric_point" target="_blank"><br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/255/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=255&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2011/01/06/my-first-bioruby-plugin-calculates-the-isoelectric-point-of-a-protein/feed/</wfw:commentRss>
		<slash:comments>9</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>PC vs Apple Mac (Not the war!)</title>
		<link>http://biorelated.com/2009/12/09/pc-vs-apple-mac-not-the-war/</link>
		<comments>http://biorelated.com/2009/12/09/pc-vs-apple-mac-not-the-war/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 13:45:58 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[laboratory]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[PC]]></category>

		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=184</guid>
		<description><![CDATA[My good old PC running Linux OS is coming of age and recently started failing. The Optical drive is not functional and occasionally it will freeze. The Top cover does not hold anymore and the graphical TFT screen needs to be supported carefully. While this particular computer has served me well, I am at that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=184&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My good old PC running Linux OS is coming of age and recently started failing. The Optical drive is not functional and occasionally it will freeze. The Top cover does not hold anymore and the graphical TFT screen needs to be supported carefully.</p>
<p>While this particular computer has served me well, I am at that point where i need a new machine but am torn between an Apple Mac and a PC running Linux. First my work involves the following aspects;</p>
<ol>
<li>Compiling and running bioinformatics software developed using open source standards and technologies</li>
<li>Programming</li>
<li> Word processing and document editing</li>
<li>Occasional mathematical modeling</li>
<li>Administering  Unix based servers</li>
</ol>
<p>I have tried to come up with a computer-model agnostic specifications for my needs.</p>
<p><strong>Hardware</strong></p>
<p>* High Processor speed (2.60GHZ or above)</p>
<p>* High Memory (4GB or above)</p>
<p>* Medium Hard-disk space (160GB and above)</p>
<p>* Long Battery life ( 5hours and above)</p>
<p>* Durable external cover</p>
<p>* Ergonomic keys and mouse</p>
<p>* Support for multiple external devices(printers,Cameras,Microphones,Storage devices,monitors)</p>
<p>* Excellent support for wireless technologies</p>
<p>* Support for running multiple operating systems on the same machine</p>
<p><strong>Size and weight</strong></p>
<p>* Lightweight</p>
<p>* convenience while travelling while traveling</p>
<p><strong> Operating System</strong></p>
<p>* A Unix or Linux derived operating system</p>
<p>* Easy to upgrade at zero or minimal cost</p>
<p>* Free patches against known security holes and problems.</p>
<p><strong> Software</strong></p>
<p>* Support for Open software standards</p>
<p>* Support for Microsoft, Adobe and other proprietary software vendor&#8217;s products</p>
<p><strong>Security</strong></p>
<p>* Excellent inbuilt support against Malware, Trojans and viruses at minimal or no cost</p>
<p>* Support for locking the machine while away or against unauthorized login</p>
<p>* Ability to easily &#8216;tag&#8217; the machine in case of theft</p>
<p><strong>Price :</strong> Affordable and reasonable</p>
<p>Based on the above specifications I have evaluated two computers models that can satisfy the above needs.</p>
<p>1. A PC laptop computer running a Linux based operating system</p>
<p>2. An Apple Macintosh laptop computer</p>
<p>I have ruled out a Windows/DOS based Operating software because  Microsoft Windows based operating system cannot  offer  support for open source standards and technologies. OS upgrade for windows is very expensive and the OS is highly prone to malware, Trojans and viruses. Most bioinformatics software and tools are developed on Unix or  Linux environment.</p>
<p>PC can support Linux installations even though one looses on hardware optimization. Linux has a relatively poor graphical user interface and functionality when compared to Mac OS or Windows. There is limited support for document processing, graphics and rich multimedia applications support. Linux does not support any of the Microsoft software applications natively. There are open source equivalents but most lack good support.</p>
<p>Apple Macintosh computers are based on Unix and open source technologies, they support both closed source and open source standards. The hardware is optimized and accelerated for the Apple mac OS. They offer excellent graphical user interface system, a powerful terminal for interaction with the OS, they are not prone to virus attacks, and they support long battery life as well as portability, ergonomics and a relatively within a  price range equivalent to a PC of the same specifications.</p>
<p>Given my budget constrains, I am thinking that a 2.53GHz Apple Macintosh 13 inch model with 4GB of memory is best for my needs. There is little price differences between the PC and Macintosh models based on my specifications. PC models do not favor Linux installations and Linux hardware support is not guaranteed. They however seem to have a more flexible price ranges depending on the manufacturers, vendors, quality and specifications.</p>
<p>I will keep Linux  to run my server applications.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=184&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2009/12/09/pc-vs-apple-mac-not-the-war/feed/</wfw:commentRss>
		<slash:comments>2</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>Bio-graphics, BioSQL and Rails part 2</title>
		<link>http://biorelated.com/2009/01/08/bio-graphics-biosql-and-rails-part-2/</link>
		<comments>http://biorelated.com/2009/01/08/bio-graphics-biosql-and-rails-part-2/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 12:23:50 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[biographics]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[bioruby]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=114</guid>
		<description><![CDATA[In  part 1 of this series we created a rails application and connected it to a BioSQL database. We also overwrote the rails convections to accommodate our legacy schema. To understand the BioSQL schema, please review the documentation here. A brief overview of is as follows. Every record we enter into our database is a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=114&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In  <a title="biographics,biosql and rails" href="http://biorelated.wordpress.com/2009/01/07/bio-graphics-biosql-and-rails-part-1/" target="_blank">part 1 of this series</a> we created a rails application and connected it to a BioSQL database. We also overwrote the rails convections to accommodate our legacy schema.</p>
<p>To understand the BioSQL schema, <a title="biosql overview" href="http://www.biosql.org/wiki/Schema_Overview" target="_blank">please review the documentation</a> here. A brief overview of is as follows. Every record we enter into our database is a &#8216;bioentry&#8217; and goes to the <span style="color:#0000ff;">bioenty table.</span> A bioentry can be composed of the following entities: the record&#8217;s <em>public name</em>, public accession and version, its description and an identifier field.</p>
<p>The actual sequence data is stored in the <span style="color:#0000ff;">biosequence table</span> which contains raw sequence information associated with a bioentry, and alphabet information (&#8216;protein&#8217;, &#8216;dna&#8217;, &#8216;rna&#8217;). This is because not all records in our database need to be associated with a raw sequence. Additional sequence information is stored in the <span style="color:#0000ff;">seqfeature table</span> together with other qualifiers.</p>
<p>The location of each <span style="color:#0000ff;">seqfeature</span> (or sub-seqfeature) is defined by a location entity, describing the stop and start coordinates and strand. This information is stored in the <span style="color:#0000ff;">location table. </span></p>
<p><span style="color:#0000ff;"><span style="color:#000000;">In our rails application we are going to create some models and a few controllers. In RESTful language, we are actually creating resources. In this example we will be very simplistic and just create a biodatabase, taxon, bioentry, biosequence, seqfeature, location resources. We will also create associations between them in their model classes. But before that </span></span> delete the <span style="color:#0000ff;">index.html</span> file from your rails application public folder and add the following line to your configurations/routes.rb file</p>
<pre> <span style="color:#993366;">map.root :controller =&gt; "biosequences"</span></pre>
<p><span style="color:#0000ff;"><span style="color:#000000;">To quickly create the models, controllers, associated views and a test suite for each of our resources, just run the rails generate scaffold command, passing the name of the model as an argument. For example,</span></span></p>
<pre><span style="color:#993366;">generate scaffold Bioentry</span></pre>
<p><span style="color:#0000ff;"><span style="color:#000000;">will create a </span></span><span style="color:#0000ff;"><span style="color:#000000;">bioentry </span></span><span style="color:#0000ff;"><span style="color:#000000;">model, a bioentries_controller, associated views (index,show,edit and new), a migration file, though in our case we do not need it. When you finish scaffolding, the routes.rb file should have the following resources declared.<br />
</span></span></p>
<pre><span style="color:#0000ff;"><span style="color:#000000;">  <span style="color:#993366;">map.resources :seqfeatures
  map.resources :locations
  map.resources :bioentries
  map.resources :biosequences
  map.resources :taxon
  map.resources :biodatabases

</span></span></span></pre>
<p>Let us create some mandatory associations for the models.</p>
<p>Edit the /models/biodatabase.rb file by adding the following</p>
<pre> <span style="color:#993366;">has_many :bioentries #a biodatabase is associated with many bioentries
 validates_uniqueness_of :name  #The name foe each biodatabase is unique!</span></pre>
<p>Edit the /models/bioentry.rb file by adding the following</p>
<pre>    <span style="color:#993366;">belongs_to :biodatabase
    belongs_to :taxon
    has_one :biosequence</span></pre>
<p>Edit the /models/taxon.rb and add</p>
<pre>   <span style="color:#993366;">has_one :bioentry</span></pre>
<p>Edit the /models/biosequence.rb file by adding:</p>
<pre>  <span style="color:#993366;">set_primary_key :bioentry_id</span> #biosequence uses bioentry_id as a primary key!
<span style="color:#993366;">  belongs_to :bioentry</span></pre>
<p>edit the /models/location.rb file by adding:</p>
<pre> <span style="color:#993366;">belongs_to :seqfeature</span></pre>
<p>Edit the /models/seqfeature.rb file by adding:</p>
<pre>  <span style="color:#993366;">belongs_to :bioentry
  has_many :locations</span></pre>
<p>Note that most likely you will be adding huge files to the database. BioSQL comes with a set of  perl scripts to enable you do that. Until bioruby 1.3 is released you will have to use the perl scripts to add huge datasets. All the documentation to do that is available from the BioSQL website. I used a perl script load_ncbi_taxonomy.pl to load taxon data to my database. This script comes with the BioSQL. (It did not seem to work on my system, I will sort that later)</p>
<p>To make this post shorter and get to the meat of it, i will assume that you have some existing data in your biosql database. If not, create some dummy data to populate, the biodatabase, bioentry,biosequence, seqfeature and location tables. In Part 3, I will show you how to create the necessary views to populate the database. After all biologists don&#8217;t want to interact with raw SQL queries and sometimes have no idea of running scripts, however they are very web savy!</p>
<p>Edit the /biosequences/show.html.erb to look as follows:</p>
<pre><span style="color:#993366;">&lt;h2&gt;&lt;%= @biosequence.bioentry.name%&gt;(&lt;%= @biosequence.alphabet %&gt;)&lt;/h2&gt;</span>
<span style="color:#993366;">&lt;p&gt;Sequence&lt;/p&gt;</span>
<span style="color:#993366;">&lt;%= @biosequence.seq %&gt;&lt;br/&gt;</span>
<span style="color:#993366;">
</span>
<span style="color:#993366;">&lt;%= link_to 'Edit', edit_biosequence_path(@biosequence) %&gt; </span></pre>
<p>Now navigate to http://localhost:3000/biosequences/1</p>
<p>and then navigate to http://locahost:3000/biosequences/1.xml The XML version of your sequence is also available!</p>
<p>Lets add some ability to render graphics for the sequences.</p>
<p>Add the following lines at the top of the <strong>biosequence.rb </strong>model file</p>
<pre> <span style="color:#993366;">require 'stringio'
 require 'base64' </span></pre>
<p>In the <strong>biosequence.rb</strong> model class, create a new method called <span style="color:#993366;">draw_graphic</span>.</p>
<pre><span style="color:#993366;">def self.draw_graphic(value)
      #get the name and length of the main feature to be drawn
     main_feature = Bioentry.find(value)
     len = main_feature.biosequence.length.to_i
     name = main_feature.name

    #create a Biographics panel and add a track
      </span><span style="color:#993366;">@my_panel = Bio::Graphics::Panel.new(len,:width=&gt; 900)</span><span style="color:#993366;">
      @track = @my_panel.add_track("#{name}",:glyph=&gt;'directed_generic')

     #specify the range for the main feature
     main_feature_range = "1..#{len}"
      @track.add_feature(Bio::Feature.new("#{name}",main_feature_range), :label=&gt;" ")

    #write the output to memory
        output = StringIO.new
        @my_panel.draw(output)
        return output.string
  end

</span></pre>
<p>This method will be called by an action method in <strong>biosequence_controller.rb</strong> file.</p>
<pre>  <span style="color:#993366;">def to_image
    begin
      image = Biosequence.draw_graphic(Biosequence.find(params[:id]))
      send_data(image, :filename =&gt; "graphic.svg", :disposition =&gt; "inline")
    rescue  ActiveRecord::RecordNotFound
      add_error("Error:Attempt to call image without specifying a biosequence  ID")
      redirect_to :action=&gt;'index'
    end
  end</span></pre>
<p>We add a rescue block to capture record not found errors. In RESTful applications a controller is limited to seven actions. So we need to add a collection to our biosequence resource in <strong>routes.rb. </strong>This is how we do it<strong>.<br />
</strong></p>
<pre><strong>  </strong><span style="color:#993366;">map.resources :biosequences,:collection=&gt;{:to_image=&gt;:get}</span><strong>
</strong></pre>
<p>Now we need to modify our /biosequences/show.html.erb file, to enable rendering of the graphic. For that we will create a helper method so that our show.html.erb view is &#8216;clean&#8217;. In helpers/<strong>biosequences_helper.rb</strong> file, add the following code</p>
<pre>  <span style="color:#993366;">def render_image(feature_obj)
     image_tag(url_for({:action=&gt;'to_image',:id=&gt;feature_obj}))
  end</span></pre>
<p>And in the /views/biosequences/show.html.erb file add the following line of code</p>
<pre><span style="color:#993366;">&lt;%= render_image(@biosequence) %&gt;&lt;br/&gt;</span></pre>
<p>Now assuming  that you have a biosql database with valid data, navigate to</p>
<p>http://localhost:3000/biosequences/show/1</p>
<div id="attachment_145" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-145" title="screenshot-biosequences-show-mozilla-firefox" src="http://biorelated.files.wordpress.com/2009/01/screenshot-biosequences-show-mozilla-firefox.png?w=300&#038;h=221" alt="screenshort" width="300" height="221" /><p class="wp-caption-text">screenshort</p></div>
<p>The above is a screen shot from my example application while I was writing this tutorial.</p>
<p>The source code for this example  application<a title="source code" href="http://github.com/georgeG/biosql_rails_example/tree/master" target="_blank"> is available from github</a></p>
<p>For a full review of the methods available for <a title="bio-graphics git repository" href="http://github.com/jandot/bio-graphics/tree/master" target="_blank">biographics please check the project&#8217;s git repository and the rdoc. </a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=114&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2009/01/08/bio-graphics-biosql-and-rails-part-2/feed/</wfw:commentRss>
		<slash:comments>10</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/2009/01/screenshot-biosequences-show-mozilla-firefox.png?w=300" medium="image">
			<media:title type="html">screenshot-biosequences-show-mozilla-firefox</media:title>
		</media:content>
	</item>
		<item>
		<title>At the Bench Series</title>
		<link>http://biorelated.com/2008/10/12/at-the-bench-series/</link>
		<comments>http://biorelated.com/2008/10/12/at-the-bench-series/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 09:26:43 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[laboratory]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[lab survival]]></category>
		<category><![CDATA[skills]]></category>

		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=32</guid>
		<description><![CDATA[Am cross cutting between the bench and the computer. My mentor and supervisor has given me an excellent book called At the Bench: A  laboratory Navigator by Kathy Barker. It is an exciting read for anyone who plans to use a biomedical research laboratory and I thought, Why not share some of the gems as  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=32&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Am cross cutting between the bench and the computer. My mentor and supervisor has given me an excellent book called <a title="A  laboratory Navigator by Kathy Barker" href="http://www.amazon.com/Bench-Laboratory-Navigator-Kathy-Barker/dp/0879697083" target="_blank">At the Bench: A  laboratory Navigator by Kathy Barker</a>. It is an exciting read for anyone who plans to use a biomedical research laboratory and I thought, Why not share some of the gems as  I read along:</p>
<p style="text-align:center;"><strong>Basic Survival</strong></p>
<p style="text-align:left;">Simple lab courtesy is a nice way of maintaining healthy working relationship with your fellow lab rats, in this rat race! What Kathy says sounds real trouble but i think and you will probably agree, its basic common sense.</p>
<p><strong>Attitude</strong></p>
<ul>
<li>Ask, do not command.</li>
<li>Assume nothing</li>
<li>Write down everything when given instructions</li>
<li>Make appointments or request time with people</li>
<li>Do not remove journals from the Departmental library</li>
<li>Do not discuss a fellow lab rat&#8217;s  results with people not in the lab</li>
</ul>
<p>Courtesy at the Bench</p>
<ul>
<li>Never use reagents or buffers without permission</li>
<li>Do not ignore broken equipments</li>
<li>Order common reagents if they are running low</li>
<li>Do not move things around or change locations of any tubes reagents or equipment.(This is not ya damn bedroom!)</li>
<li>Do not leave anything anywhere</li>
<li>If you do something wrong, confess (I wonder whether there is purgatory :))</li>
<li>Clean up immediately after an experiment</li>
<li>Request the minimum of favors( fellow lab rats are not working for you)</li>
</ul>
<p>Like all complex organizations, each research lab has its own culture and rules. the rules are largely unspoken and may not be written down. You are expected to know how to work with the equipment or referred to the manual.  You are required to decipher the vague signs and complex language to understand the rhythm and beat of the lab.  Kathy does a great job in  introducing the naive to the workbench  in this book.</p>
<p>All the best dear friend.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=32&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2008/10/12/at-the-bench-series/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>A ruby micro review</title>
		<link>http://biorelated.com/2007/11/10/a-ruby-micro-intro/</link>
		<comments>http://biorelated.com/2007/11/10/a-ruby-micro-intro/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 13:26:49 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://biorelated.wordpress.com/2007/11/10/a-ruby-micro-intro/</guid>
		<description><![CDATA[Ruby is a reflective, dynamic, object-oriented programming language, created by Yukihiro Matsumoto and released to the public in 1995. It is an extremely pragmatic language, less concerned with formalities and more concerned with ease of development and valid results. You will see Agile principles running through ruby and particularly with rails. Most of all TDD [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=13&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="content"><a href="http://biorelated.files.wordpress.com/2007/11/ruby-logo-notext.png" title="ruby logo"><img src="http://biorelated.files.wordpress.com/2007/11/ruby-logo-notext.thumbnail.png?w=640" alt="ruby logo" /></a><strong>Ruby</strong> is a reflective, dynamic, object-oriented programming language, created by Yukihiro Matsumoto and released to the public in 1995. It  is an extremely pragmatic language, less concerned with formalities and more concerned with ease of development and valid results. You will see Agile principles running through ruby and particularly with rails.  Most of all  TDD and BDD concepts / philosophies have been implemented for ruby developers. Ruby differs from most programming languages by syntax, culture, grammar and customs. It has more in common with LISP and Smalltalk than with most languages such as C++ and PHP.</p>
<p>If you can program in languages such as Perl, PHP, C or Pascal, using and learning ruby is quite easy, but the problem solving pespectives that ruby uses may throw you out at first.</p>
<p>The so popular and hyped  <a href="http://www.rubyonrails.com" title="ruby on rails site">ruby on rails</a> DSL (domain specific language) is a framework for developing web applications and currently powers hundreds of large websites around the world.</p>
<p><a href="http://bioruby.org" title="bioruby" target="_blank">Bioruby</a> is an excellent bioinformatics library for ruby. Though not highly documented like its sister, <a href="http://bioperl.org" title="bioperl">bioperl</a>, efforts are been made to improve its level of documentation. The bioruby community is also really nice and friendly. Not a single question that i have posted on the mailing list goes unanswered.</p>
<p>Hundreds of libraries for performing different tasks have been written for ruby , packaged as gems and  hosted at <a href="http://www.rubyforge.org" title="rubyforge" target="_blank">rubyforge</a></p>
<p>So far my favorite ruby editor is the <a href="http://www.netbeans.org" title="Netbeans IDE" target="_blank">netbeans IDE</a>, whose currently release is  in beta 2. The final release is slated for 3rd of Dec 2007. (Am waiting!). It features auto completion, syntax highlighting among other cool things that makes programming a joy. It also comes bundled with the jruby release,  a java implementation of ruby that is starting to  rock the world,  so you can choose to use either native ruby or jruby, the choice is all yours!</p>
<p>Ruby can be downloaded <a href="http://www.ruby-lang.org/en/" title="ruby official site" target="_blank">here</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/biorelated.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/biorelated.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=13&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2007/11/10/a-ruby-micro-intro/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/2007/11/ruby-logo-notext.thumbnail.png" medium="image">
			<media:title type="html">ruby logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Standalone BLAST with Ruby (windows)</title>
		<link>http://biorelated.com/2007/10/03/standalone-blast-with-ruby-part-1/</link>
		<comments>http://biorelated.com/2007/10/03/standalone-blast-with-ruby-part-1/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 11:42:37 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[blast]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://biorelated.wordpress.com/2007/10/03/standalone-blast-with-ruby-part-1/</guid>
		<description><![CDATA[Updated article BLAST is one of the most widely used search algorithms in molecular biology. So lets see how you can run and retrieve blast results via a simple Ruby script .I will assume you already have ruby 1.8.5 and above installed in your windows box and a standalone blast.exe which you can download from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=10&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://biorelated.wordpress.com/2009/12/15/standalone-blast-with-ruby-revisited/" target="_blank">Updated article</a></p>
<div id="_mcePaste">BLAST is one of the most widely used search algorithms in molecular biology. So lets see how you can run and retrieve blast results via a simple Ruby script .I will assume you already have ruby 1.8.5 and above installed in your windows box and a standalone blast.exe which you can download from the NCBI&#8217;s ftp site here . The latest windows binaries as of this writing is 2.2.17. Create a new folder in C and call it NCBI_Blast. Paste the downloaded blast program in this folder. Double click the blast program and it will create a bin, doc and data folders inside your your NCBI_Blast folder. If this is your first time to install blast in your machine. You will need to do a little configuration. Follow these instructions for setting up blast .</div>
<pre>#create a query sequence
myseq="pcaatcacatyyawwqqffgghhhkllkl"
#create a temporary file
require 'tempfile'
temp=Tempfile.new("seqfile")
#get the name of the temporary file
name=temp.path
#append the contents your sequence to this temporary file
temp.puts "#{myseq}"
temp.close
#since we have a protein query sequence, we will run a blastp. Please note that you will need to have a valid #database to query against. use the formatdb command to create your database before executing the lines #below.
@program = 'blastp'
#path to blast
@database = 'c:/path_to_databasefile'
#name of your query file
@input= name
#your blast output file
@output='c:/path_output_file'
#assume your blast is in a folder called NCBI_Blast, execute
system( "c:/NCBI_Blast/bin/blastall.exe -p #{@program} -d #{@database} -i #{@input} -o #{@output}")
#To capture the output in a variable execute this command instead.
#note that we have omitted the blast -o parameter
result=%x(c:/NCBI_Blast/bin/blastall.exe -p #{@program} -d #{@database} -i #{@input} )
#remember to delete the temporary file!
temp.close(true)</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/biorelated.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/biorelated.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/biorelated.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/biorelated.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/biorelated.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/biorelated.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/biorelated.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/biorelated.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/biorelated.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/biorelated.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/biorelated.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/biorelated.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/biorelated.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/biorelated.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/biorelated.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/biorelated.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=biorelated.com&amp;blog=1167040&amp;post=10&amp;subd=biorelated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://biorelated.com/2007/10/03/standalone-blast-with-ruby-part-1/feed/</wfw:commentRss>
		<slash:comments>2</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>
