[BioRuby-cvs] bioruby/lib/bio/io das.rb,1.14,1.15
Katayama Toshiaki
k at dev.open-bio.org
Wed Mar 28 19:51:26 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv8284/io
Modified Files:
das.rb
Log Message:
* dna, features methods are added for the convenience
Index: das.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/das.rb,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** das.rb 28 Mar 2007 16:51:37 -0000 1.14
--- das.rb 28 Mar 2007 19:51:24 -0000 1.15
***************
*** 34,37 ****
--- 34,48 ----
end
+ def dna(dsn, entry_point, start, stop)
+ seg = Bio::DAS::SEGMENT.region(entry_point, start, stop)
+ self.get_dna(dsn, seg).first.sequence
+ end
+
+ def features(dsn, entry_point, start, stop)
+ seg = Bio::DAS::SEGMENT.region(entry_point, start, stop)
+ self.get_features(dsn, seg)
+ end
+
+
# Returns an Array of Bio::DAS::DSN
def get_dsn
More information about the bioruby-cvs
mailing list