class EcfClassify::CLI
Public Instance Methods
__print_version()
click to toggle source
# File lib/ecf_classify.rb, line 16 def __print_version puts "#{EcfClassify::NAME}: #{EcfClassify::VERSION}" exit end
cite()
click to toggle source
# File lib/ecf_classify.rb, line 59 def cite puts "Thank you for using #{EcfClassify::NAME} in version #{EcfClassify::VERSION}.\nPlease cite \n\n#{EcfClassify::CITE}\n\nif you are using #{EcfClassify::NAME}" end
download()
click to toggle source
# File lib/ecf_classify.rb, line 54 def download EcfClassify::Zenodo.download end
groups(file)
click to toggle source
# File lib/ecf_classify.rb, line 23 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
handle_help_option(method_name)
click to toggle source
# File lib/ecf_classify.rb, line 64 def handle_help_option(method_name) if options[:help] help(method_name) exit end end
subgroups(file)
click to toggle source
# File lib/ecf_classify.rb, line 39 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