[BioRuby] fastacmd.rb: iteration
jan aerts (RI)
jan.aerts at bbsrc.ac.uk
Tue Mar 21 12:38:30 UTC 2006
Hi,
Could someone please have a look at the each_entry method of
io/fastacmd.rb (in cvs)? The code below gives the sequences of
'id_of_entry1' and 'id_of_entry2', but the each_entry method gives no
output. Any ideas?
fastacmd = Bio::Blast::Fastacmd.new("/path_to_my_db/db_name")
seqs = fastacmd.fetch(['id_of_entry1','id_of_entry2'])
seqs.each do |seq|
puts seq => works fine
end
fastacmd.each_entry do |fasta|
puts 'hi' => it never seems to get here...
end
Thanks,
Jan Aerts, PhD
Bioinformatics Group
Roslin Institute
Roslin, Scotland, UK
+44 131 527 4200
---------The obligatory disclaimer--------
The information contained in this e-mail (including any attachments) is
confidential and is intended for the use of the addressee only. The
opinions expressed within this e-mail (including any attachments) are
the opinions of the sender and do not necessarily constitute those of
Roslin Institute (Edinburgh) ("the Institute") unless specifically
stated by a sender who is duly authorised to do so on behalf of the
Institute.
More information about the BioRuby
mailing list