Class: GalaxyUtil

Inherits:
Object
  • Object
show all
Defined in:
lib/protk/galaxy_util.rb

Class Method Summary collapse

Class Method Details

.for_galaxy?Boolean

Returns:

  • (Boolean)


9
10
11
12
13
# File 'lib/protk/galaxy_util.rb', line 9

def self.for_galaxy?    
  fg = ARGV[0]=="--galaxy"
  ARGV.shift if fg
  fg
end

.stage_fasta(input_path, options = {}) ⇒ Object



20
21
22
23
# File 'lib/protk/galaxy_util.rb', line 20

def self.stage_fasta(input_path,options={})
  options = { :extension => '.fasta', :force_copy => false }.merge(options)
  GalaxyStager.new(input_path, options )
end

.stage_pepxml(input_pepxml_path, options = {}) ⇒ Object



15
16
17
18
# File 'lib/protk/galaxy_util.rb', line 15

def self.stage_pepxml(input_pepxml_path,options={})
  options = { :extension => '.pep.xml', :force_copy => false }.merge(options)
  GalaxyStager.new(input_pepxml_path, options )
end