class Bio::Velvet::Graph::NodedReadArray

Public Instance Methods

get_read_by_id(read_id) click to toggle source
# 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