[BioRuby-cvs] bioruby/lib/bio sequence.rb,0.55,0.56
Katayama Toshiaki
k at pub.open-bio.org
Fri Feb 17 17:15:10 UTC 2006
Update of /home/repository/bioruby/bioruby/lib/bio
In directory pub.open-bio.org:/tmp/cvs-serv31436/lib/bio
Modified Files:
sequence.rb
Log Message:
* Bio::Sequence#na and aa methods are added which force to convert @seq
object to Bio::Sequence::NA and AA object respectively
Index: sequence.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence.rb,v
retrieving revision 0.55
retrieving revision 0.56
diff -C2 -d -r0.55 -r0.56
*** sequence.rb 14 Feb 2006 13:46:42 -0000 0.55
--- sequence.rb 17 Feb 2006 17:15:08 -0000 0.56
***************
*** 83,86 ****
--- 83,96 ----
end
+ def na
+ @seq = NA.new(@seq)
+ @moltype = NA
+ end
+
+ def aa
+ @seq = AA.new(@seq)
+ @moltype = AA
+ end
+
end # Sequence
More information about the bioruby-cvs
mailing list