Method: BioDSL::Assemble#check_options

Defined in:
lib/BioDSL/seq/assemble.rb

#check_optionsObject

Check option values are sane.

Raises:

  • on bad values.



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/BioDSL/seq/assemble.rb', line 64

def check_options
  if @options[:mismatches_max] < 0
    fail AssembleError, "mismatches_max must be zero or greater - not: \
    #{@options[:mismatches_max]}"
  end

  if @options[:overlap_max] && @options[:overlap_max] <= 0
    fail AssembleError, "overlap_max must be one or greater - not: \
    #{@options[:overlap_max]}"
  end

  if @options[:overlap_min] <= 0
    fail AssembleError, "overlap_min must be one or greater - not: \
    #{@options[:overlap_min]}"
  end
end