Module: NeuroHmmerApp::RunNeuroHmmer

Extended by:
Forwardable
Defined in:
lib/neurohmmerapp/neurohmmer.rb

Overview

Module that runs NeuroHmmer

Defined Under Namespace

Classes: ArgumentError, RuntimeError

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.gv_dirObject (readonly)

Returns the value of attribute gv_dir.



27
28
29
# File 'lib/neurohmmerapp/neurohmmer.rb', line 27

def gv_dir
  @gv_dir
end

.input_fileObject (readonly)

Returns the value of attribute input_file.



27
28
29
# File 'lib/neurohmmerapp/neurohmmer.rb', line 27

def input_file
  @input_file
end

.paramsObject (readonly)

Returns the value of attribute params.



27
28
29
# File 'lib/neurohmmerapp/neurohmmer.rb', line 27

def params
  @params
end

.raw_seqObject (readonly)

Returns the value of attribute raw_seq.



27
28
29
# File 'lib/neurohmmerapp/neurohmmer.rb', line 27

def raw_seq
  @raw_seq
end

.unique_idObject (readonly)

Returns the value of attribute unique_id.



27
28
29
# File 'lib/neurohmmerapp/neurohmmer.rb', line 27

def unique_id
  @unique_id
end

.xml_fileObject (readonly)

Returns the value of attribute xml_file.



27
28
29
# File 'lib/neurohmmerapp/neurohmmer.rb', line 27

def xml_file
  @xml_file
end

Class Method Details

.init(_base_url, params) ⇒ Object

Setting the scene



30
31
32
33
34
35
36
# File 'lib/neurohmmerapp/neurohmmer.rb', line 30

def init(_base_url, params)
  create_unique_id
  create_run_dir
  @params = params
  validate_params
  # @url = produce_result_url_link(base_url)
end

.runObject

Runs genevalidator & Returns parsed JSON, or link to JSON/results file



39
40
41
42
# File 'lib/neurohmmerapp/neurohmmer.rb', line 39

def run
  write_seqs_to_file
  run_neurohmmer
end