16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/protk/galaxy_util.rb', line 16
def self.stage_protxml(input_protxml_path)
protxml_path="interact.prot.xml"
FileUtils.copy(input_protxml_path, "interact.prot.xml")
protxml = ProtXML.new(protxml_path)
pepxml_path = protxml.find_pep_xml()
protxml_stager = GalaxyStager.new(protxml_path, :extension => ".prot.xml", :force_copy => true)
pepxml_stager = GalaxyStager.new(pepxml_path, :name => "interact", :extension => ".xml", :force_copy => true)
pepxml_path = pepxml_stager.staged_path
pepxml_stager.replace_references(protxml_path)
runs = PepXML.new(pepxml_stager.staged_path).find_runs()
run_stagers = runs.map do |base_name, run|
run_stager = GalaxyStager.new(base_name, :extension => ".#{run[:type]}")
ConvertUtil.ensure_mzml_indexed(run_stager.staged_path)
run_stager.replace_references(pepxml_path, :base_only => true)
run_stager
end
protxml_path
end
|