# HG changeset patch # User galaxyp # Date 1595708779 0 # Node ID b0eeb2dba9f7ac63a4799c760084dc35fa593869 # Parent 0948d4618f3d96b370665c862b02bed982d40f0c "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/ThermoRawfileParser commit a502d3fbf1f1ecfca1c9b115beab9d9c0e358fb5" diff -r 0948d4618f3d -r b0eeb2dba9f7 thermo_converter.xml --- a/thermo_converter.xml Mon May 04 12:00:10 2020 +0000 +++ b/thermo_converter.xml Sat Jul 25 20:26:19 2020 +0000 @@ -1,4 +1,4 @@ - + RAW file converter thermorawfileparser @@ -9,13 +9,9 @@ mkdir ./raws_folder && mkdir ./output_folder && -#for $input_raw in $input: - #if len($input) > 1 - #set $input_name = re.sub('[^\w\-\.]', '_',$input_raw.element_identifier.split('/')[-1].replace(".raw", "") + ".raw") - ln -s -f '${input_raw}' './raws_folder/${input_name}' && - #else: - ln -s -f '${input_raw}' './raws_folder/input.raw' && - #end if +#for $input_raw in $input_files: + #set $input_name = re.sub('[^\w\-\.]', '_',$input_raw.element_identifier.split('/')[-1].replace(".raw", "") + ".raw") + ln -s -f '${input_raw}' './raws_folder/${input_name}' && #end for ThermoRawFileParser.sh @@ -29,27 +25,10 @@ $peakpicking_boolean $ignore_instrument_errors_boolean - #if len($input) == 1: - #if $output_format == "0": - && mv ./output_folder/input.mgf ./output_file.out - #else if $output_format == "1": - && mv ./output_folder/input.mzML ./output_file.out - #else if $output_format == "2": - && mv ./output_folder/input.mzML ./output_file.out - #end if - - #if $output_metadata_selector != "off": - #if $output_metadata_selector == "0": - && mv ./output_folder/input-metadata.json ./input-metadata.txt - #else if $output_metadata_selector == "1": - && mv ./output_folder/input-metadata.txt ./input-metadata.txt - #end if - #end if - #end if ]]> - @@ -76,47 +55,23 @@ - - - - (str(input)).count(',') == 0 - - - - - - - - str(output_metadata_selector) != "off" - (str(input)).count(',') == 0 - - - - - - - - + output_format == "0" - (str(input)).count(',') > 0 - + output_format == "1" - (str(input)).count(',') > 0 - + output_format == "2" - (str(input)).count(',') > 0 - + output_metadata_selector != "off" - (str(input)).count(',') > 0 @@ -124,56 +79,62 @@ - + - + + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +