Method: BioDSL::Assemble#check_options
- Defined in:
- lib/BioDSL/seq/assemble.rb
#check_options ⇒ Object
Check option values are sane.
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 if [:mismatches_max] < 0 fail AssembleError, "mismatches_max must be zero or greater - not: \ #{@options[:mismatches_max]}" end if [:overlap_max] && [:overlap_max] <= 0 fail AssembleError, "overlap_max must be one or greater - not: \ #{@options[:overlap_max]}" end if [:overlap_min] <= 0 fail AssembleError, "overlap_min must be one or greater - not: \ #{@options[:overlap_min]}" end end |