<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: Standalone BLAST with Ruby</title>
	<atom:link href="http://biorelated.wordpress.com/2007/10/03/standalone-blast-with-ruby-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://biorelated.wordpress.com/2007/10/03/standalone-blast-with-ruby-part-1/</link>
	<description>[bioinformatics,biology,ruby,rails].each do &#124;b&#124; puts b.blog end</description>
	<lastBuildDate>Wed, 14 Oct 2009 09:11:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jan.</title>
		<link>http://biorelated.wordpress.com/2007/10/03/standalone-blast-with-ruby-part-1/#comment-62</link>
		<dc:creator>jan.</dc:creator>
		<pubDate>Thu, 24 Jan 2008 15:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://biorelated.wordpress.com/2007/10/03/standalone-blast-with-ruby-part-1/#comment-62</guid>
		<description>You can also use bioruby to run BLAST searches against local databases. Here&#039;s a sample script:
&lt;code&gt;
  #!/usr/bin/ruby
  require &#039;bio&#039;
  
  factory = Bio::Blast.local(&#039;blastn&#039;, &#039;/path/to/BLAST/database&#039;)
  ff = Bio::FlatFile.open(Bio::FastaFormat, &#039;input_file.fa&#039;)
  ff.each do &#124;entry&#124;
    $stderr.puts &quot;Searching...&quot; + entry.definition
    report = factory.query(entry)
    report.each do &#124;hit&#124;
      hit.each do &#124;hsp&#124;
        puts hsp.query_from
      end
    end
  end
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>You can also use bioruby to run BLAST searches against local databases. Here&#8217;s a sample script:<br />
<code><br />
  #!/usr/bin/ruby<br />
  require 'bio'</p>
<p>  factory = Bio::Blast.local('blastn', '/path/to/BLAST/database')<br />
  ff = Bio::FlatFile.open(Bio::FastaFormat, 'input_file.fa')<br />
  ff.each do |entry|<br />
    $stderr.puts "Searching..." + entry.definition<br />
    report = factory.query(entry)<br />
    report.each do |hit|<br />
      hit.each do |hsp|<br />
        puts hsp.query_from<br />
      end<br />
    end<br />
  end<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
