<?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: Bioruby mini-series: The Bio::Sequence::Common class</title>
	<atom:link href="http://biorelated.wordpress.com/2008/02/12/bioruby-mini-series-the-biosequencecommon-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://biorelated.wordpress.com/2008/02/12/bioruby-mini-series-the-biosequencecommon-class/</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: Mark Brooks</title>
		<link>http://biorelated.wordpress.com/2008/02/12/bioruby-mini-series-the-biosequencecommon-class/#comment-114</link>
		<dc:creator>Mark Brooks</dc:creator>
		<pubDate>Sun, 22 Feb 2009 18:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=26#comment-114</guid>
		<description>I&#039;ve also been incorporating Bio::Ruby into a Rails app.  You can see an example here: 

http://plasmidb.cvs.sourceforge.net/viewvc/plasmidb/plasmidb-2/app/views/subunit/show.rhtml?revision=1.3&amp;view=markup</description>
		<content:encoded><![CDATA[<p>I&#8217;ve also been incorporating Bio::Ruby into a Rails app.  You can see an example here: </p>
<p><a href="http://plasmidb.cvs.sourceforge.net/viewvc/plasmidb/plasmidb-2/app/views/subunit/show.rhtml?revision=1.3&amp;view=markup" rel="nofollow">http://plasmidb.cvs.sourceforge.net/viewvc/plasmidb/plasmidb-2/app/views/subunit/show.rhtml?revision=1.3&amp;view=markup</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: biorelated</title>
		<link>http://biorelated.wordpress.com/2008/02/12/bioruby-mini-series-the-biosequencecommon-class/#comment-94</link>
		<dc:creator>biorelated</dc:creator>
		<pubDate>Sun, 04 May 2008 17:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=26#comment-94</guid>
		<description>@shev, Thank you for your comment,i will attend to the color issue immediately.</description>
		<content:encoded><![CDATA[<p>@shev, Thank you for your comment,i will attend to the color issue immediately.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shev</title>
		<link>http://biorelated.wordpress.com/2008/02/12/bioruby-mini-series-the-biosequencecommon-class/#comment-93</link>
		<dc:creator>shev</dc:creator>
		<pubDate>Sun, 04 May 2008 17:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=26#comment-93</guid>
		<description>Ah, this has come a bit late, but I agree with the guys saying thank you :)

I have however one suggestion, can the colours be adjusted a bit? the thin bright-blue on white background is a bit difficult to read for my bad eyes :-)</description>
		<content:encoded><![CDATA[<p>Ah, this has come a bit late, but I agree with the guys saying thank you :)</p>
<p>I have however one suggestion, can the colours be adjusted a bit? the thin bright-blue on white background is a bit difficult to read for my bad eyes :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://biorelated.wordpress.com/2008/02/12/bioruby-mini-series-the-biosequencecommon-class/#comment-83</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Wed, 19 Mar 2008 15:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=26#comment-83</guid>
		<description>Thanks George, I will learn this and apply it to my project. Looking forward to more of your posts!</description>
		<content:encoded><![CDATA[<p>Thanks George, I will learn this and apply it to my project. Looking forward to more of your posts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: biorelated</title>
		<link>http://biorelated.wordpress.com/2008/02/12/bioruby-mini-series-the-biosequencecommon-class/#comment-82</link>
		<dc:creator>biorelated</dc:creator>
		<pubDate>Wed, 19 Mar 2008 10:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=26#comment-82</guid>
		<description>You are welcome Jay. Integrating bioruby with rails is really easy. Install the bioruby gem
gem install bio

Then add this line to your environment.rb file.
&#039;require bio&#039;

and you are set. 
for example you can use a model assuming that the model stores some sequence data as follows

#get an array of sequences given an array of feature ids
#This method will return a fasta formatted file of the sequence data
#The feature model has a name field and a residues field. 
 
def self.send_to_fasta(*accessions)
   features = Feature.find(accessions)
   @my_fasta = []
   features.each do &#124;feature&#124;
     name = feature.name
     seq = Bio::Sequence.auto(feature.residues.to_s)
     @fasta_file = seq.to_fasta(name.to_s, 80)
     @my_fasta &lt;&lt; @fasta_file
   end
   return @my_fasta
 rescue
   puts &quot;wrong names or accession numbers&quot;
 end

A real easy example is this method within a model

#returns a bio-sequence length given a sequence string
 def self.bioseqlen(seq_value)
   bio_seq = Bio::Sequence.auto(seq_value)
   residues_count = bio_seq.seq.length
   return residues_count
 end

It can be called as follows
Model.bioseqlen(sequence_string)

Once i get sometime over the weeekend i will write a more detailed fuctionality</description>
		<content:encoded><![CDATA[<p>You are welcome Jay. Integrating bioruby with rails is really easy. Install the bioruby gem<br />
gem install bio</p>
<p>Then add this line to your environment.rb file.<br />
&#8216;require bio&#8217;</p>
<p>and you are set.<br />
for example you can use a model assuming that the model stores some sequence data as follows</p>
<p>#get an array of sequences given an array of feature ids<br />
#This method will return a fasta formatted file of the sequence data<br />
#The feature model has a name field and a residues field. </p>
<p>def self.send_to_fasta(*accessions)<br />
   features = Feature.find(accessions)<br />
   @my_fasta = []<br />
   features.each do |feature|<br />
     name = feature.name<br />
     seq = Bio::Sequence.auto(feature.residues.to_s)<br />
     @fasta_file = seq.to_fasta(name.to_s, 80)<br />
     @my_fasta &lt;&lt; @fasta_file<br />
   end<br />
   return @my_fasta<br />
 rescue<br />
   puts &#8220;wrong names or accession numbers&#8221;<br />
 end</p>
<p>A real easy example is this method within a model</p>
<p>#returns a bio-sequence length given a sequence string<br />
 def self.bioseqlen(seq_value)<br />
   bio_seq = Bio::Sequence.auto(seq_value)<br />
   residues_count = bio_seq.seq.length<br />
   return residues_count<br />
 end</p>
<p>It can be called as follows<br />
Model.bioseqlen(sequence_string)</p>
<p>Once i get sometime over the weeekend i will write a more detailed fuctionality</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://biorelated.wordpress.com/2008/02/12/bioruby-mini-series-the-biosequencecommon-class/#comment-80</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Wed, 19 Mar 2008 03:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://biorelated.wordpress.com/?p=26#comment-80</guid>
		<description>Thanks for the post, George. Could you also please post something that shows a newbie how to integrate BioRuby with Rails? For ex., if I have a database backed Rails app showing gene and protein sequences, organism, taxonomy etc, how do I integrate BioRuby with the app such that I can mine data from PubMed and GenBank and populate the tables created through Rails migrations
Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Thanks for the post, George. Could you also please post something that shows a newbie how to integrate BioRuby with Rails? For ex., if I have a database backed Rails app showing gene and protein sequences, organism, taxonomy etc, how do I integrate BioRuby with the app such that I can mine data from PubMed and GenBank and populate the tables created through Rails migrations<br />
Thanks a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
