Class: Neurohmmer::ArgumentsValidators
- Inherits:
-
Object
- Object
- Neurohmmer::ArgumentsValidators
- Defined in:
- lib/neurohmmer/arg_validators.rb
Overview
A class that validates the command line opts
Class Method Summary collapse
Class Method Details
.run(opt) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/neurohmmer/arg_validators.rb', line 8 def run(opt) assert_file_present('input fasta file', opt[:input_file]) assert_input_file_not_empty(opt[:input_file]) assert_input_file_probably_fasta(opt[:input_file]) opt[:type] = assert_input_sequence(opt[:input_file]) export_bin_dirs(opt[:hmmer_bin]) if opt[:hmmer_bin] # TODO: Assert hmm & mafft binaries opt end |