Mercurial > repos > tomnl > mspurity_dimspredictpuritysingle
comparison dimsPredictPuritySingle.xml @ 14:1389e565f95e draft default tip
planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
| author | tomnl |
|---|---|
| date | Wed, 27 Nov 2019 12:37:27 +0000 |
| parents | 1ce857d74106 |
| children |
comparison
equal
deleted
inserted
replaced
| 13:4164de21d178 | 14:1389e565f95e |
|---|---|
| 1 <tool id="mspurity_dimspredictpuritysingle" name="msPurity.dimsPredictPuritySingle" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@"> | 1 <tool id="mspurity_dimspredictpuritysingle" name="msPurity.dimsPredictPuritySingle" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@"> |
| 2 <description>Calculate the anticipated precursor ion purity from a DIMS dataset. | 2 <description>Calculate the anticipated precursor ion purity from a DIMS dataset.</description> |
| 3 </description> | |
| 4 <macros> | 3 <macros> |
| 5 <import>macros.xml</import> | 4 <import>macros.xml</import> |
| 6 </macros> | 5 </macros> |
| 7 <expand macro="requirements" /> | 6 <expand macro="requirements" /> |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 8 Rscript '$__tool_directory__/dimsPredictPuritySingle.R' | |
| 9 #if $mzML_data.format == 'mzML_file' | |
| 10 --mzML_file '$mzML_data.source' | |
| 11 #elif $mzML_data.format == 'library' | |
| 12 --mzML_file '$__app__.config.user_library_import_dir/$__user_email__/$mzML_data.source' | |
| 13 #elif $mzML_data.format == 'mzML_data_collection' | |
| 14 --mzML_files=' | |
| 15 #for $i in $mzML_data.source | |
| 16 $i, | |
| 17 #end for | |
| 18 ' | |
| 19 --galaxy_names=' | |
| 20 #for $i in $mzML_data.source | |
| 21 $i.name, | |
| 22 #end for | |
| 23 ' | |
| 24 --mzML_filename=' $mzML_data.mzML_filename' | |
| 8 | 25 |
| 9 <stdio> | |
| 10 <exit_code range="1:" /> | |
| 11 </stdio> | |
| 12 <command interpreter="Rscript"><![CDATA[ | |
| 13 dimsPredictPuritySingle.R | |
| 14 #if $mzML_data.format == "mzML_file" | |
| 15 --mzML_file $mzML_data.source | |
| 16 #elif $mzML_data.format == "library" | |
| 17 --mzML_file $__app__.config.user_library_import_dir/$__user_email__/$mzML_data.source | |
| 18 #end if | 26 #end if |
| 19 --peaks_file=$peaks_file | 27 --peaks_file='$peaks_file' |
| 20 --out_dir=. | 28 --out_dir='.' |
| 21 --minOffset=$minoffset | 29 --minoffset=$minoffset |
| 22 --maxOffset=$maxoffset | 30 --maxoffset=$maxoffset |
| 23 --ppm=$ppm | 31 --ppm=$ppm |
| 24 --iwNorm=$iw_norm | 32 --iwNorm=$iw_norm |
| 25 --ilim=$ilim | 33 --ilim=$ilim |
| 26 #if $sim | 34 #if $sim |
| 27 --sim | 35 --sim |
| 29 #if $remove_NAs | 37 #if $remove_NAs |
| 30 --remove_nas | 38 --remove_nas |
| 31 #end if | 39 #end if |
| 32 #if $dimspy_usage.usage == "dimspy" | 40 #if $dimspy_usage.usage == "dimspy" |
| 33 --dimspy | 41 --dimspy |
| 34 --file_num_dimspy $dimspy_usage.file_num | 42 --file_num_dimspy $dimspy_usage.file_num_dimspy |
| 35 #end if | 43 #end if |
| 36 #if $isotopes.isotopes == "exclude_default": | 44 #if $isotopes.isotopes == "exclude_default": |
| 37 --exclude_isotopes | 45 --exclude_isotopes |
| 38 #elif $isotopes.isotopes == "user" | 46 #elif $isotopes.isotopes == "user" |
| 39 --exclude_isotopes | 47 --exclude_isotopes |
| 40 --isotope_matrix = $isotopes.im | 48 --isotope_matrix = '$isotopes.im' |
| 41 #end if | 49 #end if |
| 42 ]]></command> | 50 ]]></command> |
| 43 <inputs> | 51 <inputs> |
| 44 | 52 |
| 45 <param type="data" name="peaks_file" format="tsv, tabular" | 53 <param argument="--peaks_file" type="data" format="tsv, tabular" |
| 46 help="tsv or tabular file with one column containing the mz values (column header should be either | 54 help="tsv or tabular file with one column containing the mz values (column header should be either |
| 47 mz)"/> | 55 mz)"/> |
| 48 | 56 |
| 49 <conditional name="mzML_data"> | 57 <conditional name="mzML_data"> |
| 50 <param name="format" type="select" label="Choose the source for the dataset" > | 58 <param name="format" type="select" label="Choose the source for the dataset" > |
| 51 <option value="mzML_file" selected="true">.mzML files to check purity from</option> | 59 <option value="mzML_file" selected="true">A single .mzML files to check purity from</option> |
| 52 <option value="library">Library directory name (to be used with dimspy workflows) or path to | 60 <option value="library">Library directory name (to be used with dimspy workflows) or path to |
| 53 to an individual .mzML file</option> | 61 to an individual .mzML file</option> |
| 62 <option value="mzML_data_collection" selected="true">A data collection of .mzML files</option> | |
| 54 </param> | 63 </param> |
| 55 <when value="mzML_file"> | 64 <when value="mzML_file"> |
| 56 <param name="source" type="data" format="mzml" label="Single *.mzML" argument="--mzML_file" > | 65 <param argument="--mzML_file" name="source" type="data" format="mzml" label="Single *.mzML" > |
| 57 <validator type="empty_field" /> | 66 <validator type="empty_field" /> |
| 58 </param> | 67 </param> |
| 59 </when> | 68 </when> |
| 69 <when value="mzML_data_collection"> | |
| 70 <param argument="--mzML_files" name="source" type="data_collection" | |
| 71 label="Data collection containing *.mzml files" > | |
| 72 <validator type="empty_field" /> | |
| 73 </param> | |
| 74 <param argument="--mzML_filename" type="text" label="Name of file to to calculate purity from" help=""/> | |
| 75 </when> | |
| 76 | |
| 60 <when value="library"> | 77 <when value="library"> |
| 61 <param name="source" type="text" | 78 <param argument="--mzML_file" name="source" type="text" |
| 62 size="40" label="Library directory containing *.mzml files | 79 size="40" label="Library directory containing *.mzml files (dimspy input only) |
| 63 or path to an individual *.mzML" | 80 or path to an individual .mzML file"> |
| 64 argument="--mzML_file"> | |
| 65 <validator type="empty_field" /> | 81 <validator type="empty_field" /> |
| 66 </param> | 82 </param> |
| 67 </when> | 83 </when> |
| 84 | |
| 68 </conditional> | 85 </conditional> |
| 69 | 86 |
| 87 <expand macro="general_params" /> | |
| 70 <expand macro="offsets" /> | 88 <expand macro="offsets" /> |
| 71 <expand macro="general_params" /> | |
| 72 | 89 |
| 73 | 90 <param argument="--ppm" type="float" label="ppm" min="0" value="10" |
| 74 <param name="ppm" type="float" label="ppm" value="10" | |
| 75 help="ppm tolerance to compare between mz values"/> | 91 help="ppm tolerance to compare between mz values"/> |
| 76 | 92 <param argument="--remove_NAs" type="boolean" label="Remove rows where mz value is NA or NaN?" help=""/> |
| 77 <param name="minoffset" type="float" label="minoffset" value="0.5" | 93 <param argument="--sim" type="boolean" label="SIM-Stitch experiment?" help=""/> |
| 78 help="Offset to the 'left' for the precursor range e.g. if precursor of interest is | |
| 79 100.0 then the range would be from 999.5 to 100.0"/> | |
| 80 | |
| 81 <param name="remove_NAs" type="boolean" label="Remove rows where mz value is NA or NaN?" help=""/> | |
| 82 | |
| 83 <param name="sim" type="boolean" label="SIM-Stitch experiment?" help=""/> | |
| 84 | |
| 85 <conditional name="dimspy_usage"> | 94 <conditional name="dimspy_usage"> |
| 86 <param name="usage" type="select" label="dimspy peak matrix text file usage?"> | 95 <param name="usage" type="select" label="dimspy peak matrix text file usage?"> |
| 87 <option value="no_dimspy" selected="true">dimspy not used to prepare the mz text file</option> | 96 <option value="no_dimspy" selected="true">dimspy not used to prepare the mz text file</option> |
| 88 <option value="dimspy">dimspy used to prepare mz file</option> | 97 <option value="dimspy">dimspy used to prepare mz file</option> |
| 89 </param> | 98 </param> |
| 90 <when value="no_dimspy"> | 99 <when value="no_dimspy"> |
| 91 </when> | 100 </when> |
| 92 <when value="dimspy"> | 101 <when value="dimspy"> |
| 93 <param name="file_num" type="integer" label="File number" value="1" | 102 <param argument="--file_num_dimspy" type="integer" label="File number" min="0" value="1" |
| 94 help="Choose the file number from the dimspy matrix to use to calculate the precursor ion | 103 help="Choose the file number from the dimspy matrix to use to calculate the precursor ion |
| 95 purity metric (order based on column order). This file will then be looked for in the | 104 purity metric (order based on column order). This file will then be looked for in the |
| 96 library folder to calculate the metric. | 105 library folder to calculate the metric. |
| 97 "/> | 106 "/> |
| 98 </when> | 107 </when> |
| 107 <test> | 116 <test> |
| 108 <param name="mzML_data|format" value="mzML_file" /> | 117 <param name="mzML_data|format" value="mzML_file" /> |
| 109 <param name="mzML_data|source" value="dimsPredictPuritySingle_full_scan.mzML" /> | 118 <param name="mzML_data|source" value="dimsPredictPuritySingle_full_scan.mzML" /> |
| 110 <param name="remove_NAs" value="True" /> | 119 <param name="remove_NAs" value="True" /> |
| 111 <param name="dimspy_usage|usage" value="dimspy" /> | 120 <param name="dimspy_usage|usage" value="dimspy" /> |
| 121 <param name="dimspy_usage|file_num_dimspy" value="1" /> | |
| 112 <param name="peaks_file" value="dimsPredictPuritySingle_input_dimspy_peakmatrix.tsv" /> | 122 <param name="peaks_file" value="dimsPredictPuritySingle_input_dimspy_peakmatrix.tsv" /> |
| 113 <output name="dimsPredictPuritySingle_output" value="dimsPredictPuritySingle_output.tsv" /> | 123 <output name="dimsPredictPuritySingle_output" value="dimsPredictPuritySingle_output.tsv" /> |
| 114 </test> | 124 </test> |
| 115 </tests> | 125 </tests> |
| 116 | 126 |
