Class: Bio::Velvet::Graph::NodedReadArray
- Inherits:
-
Array
- Object
- Array
- Bio::Velvet::Graph::NodedReadArray
- Defined in:
- lib/bio-velvet/graph.rb
Instance Method Summary collapse
Instance Method Details
#get_read_by_id(read_id) ⇒ Object
374 375 376 377 378 379 380 381 382 383 |
# File 'lib/bio-velvet/graph.rb', line 374 def get_read_by_id(read_id) # Construct hash if not already done if @read_id_to_short_read_id.nil? @read_id_to_short_read_id = {} each do |short_read| @read_id_to_short_read_id[short_read.read_id] = short_read end end @read_id_to_short_read_id[read_id] end |