Method: Bio::Fasta::Report#threshold

Defined in:
lib/bio/appl/fasta/format10.rb

#threshold(evalue_max = 0.1) ⇒ Object

Returns an Array of Bio::Fasta::Report::Hit objects having better evalue than ‘evalue_max’.



67
68
69
70
71
72
73
# File 'lib/bio/appl/fasta/format10.rb', line 67

def threshold(evalue_max = 0.1)
  list = []
  @hits.each do |x|
    list.push(x) if x.evalue < evalue_max
  end
  return list
end