Class: EcfClassify::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/ecf_classify.rb

Instance Method Summary collapse

Instance Method Details

#groups(file) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/ecf_classify.rb', line 14

def groups(file)
  handle_help_option(__method__)

  conserved = Tempfile.new("conserved")
  begin
    STDERR.puts EcfClassify::Runner.general(file,conserved.path)
    conserved.rewind
    STDOUT.puts EcfClassify::Runner.specific(conserved.path, __method__, options.probabilities)
  ensure
    conserved.close
    conserved.unlink
  end
end

#subgroups(file) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/ecf_classify.rb', line 30

def subgroups(file)
  handle_help_option(__method__)

  conserved = Tempfile.new("conserved")
  begin
    STDERR.puts EcfClassify::Runner.general(file,conserved.path)
    conserved.rewind
    STDOUT.puts EcfClassify::Runner.specific(conserved.path, __method__, options.probabilities)
  ensure
    conserved.close
    conserved.unlink
  end
end