Mercurial > repos > tomnl > mspurity_flagremove
comparison flagRemove.xml @ 15:b71677d4f958 draft default tip
planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
| author | tomnl |
|---|---|
| date | Wed, 27 Nov 2019 12:31:10 +0000 |
| parents | 7e4a5ce0877d |
| children |
comparison
equal
deleted
inserted
replaced
| 14:568e12663295 | 15:b71677d4f958 |
|---|---|
| 1 <tool id="mspurity_flagremove" name="msPurity.flagRemove" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@"> | 1 <tool id="mspurity_flagremove" name="msPurity.flagRemove" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@"> |
| 2 <description>Tool to flag and remove XCMS grouped peaks from the xcmsSet object based on various thresholds | 2 <description>Tool to flag and remove XCMS grouped peaks from the xcmsSet object based on various thresholds |
| 3 (e.g. RSD of intensity and retention time). | 3 (e.g. RSD of intensity and retention time). |
| 4 </description> | 4 </description> |
| 5 | |
| 6 <macros> | 5 <macros> |
| 7 <import>macros.xml</import> | 6 <import>macros.xml</import> |
| 8 </macros> | 7 </macros> |
| 9 | |
| 10 <expand macro="requirements" /> | 8 <expand macro="requirements" /> |
| 11 | 9 <command detect_errors="exit_code"><![CDATA[ |
| 12 <stdio> | 10 Rscript '$__tool_directory__/flagRemove.R' |
| 13 <exit_code range="1:" /> | 11 --xset_path='$xset_path' |
| 14 </stdio> | |
| 15 <command interpreter="Rscript"><![CDATA[ | |
| 16 flagRemove.R | |
| 17 --xset_path=$xset_path | |
| 18 --out_dir=. | 12 --out_dir=. |
| 19 | 13 |
| 20 #if $sample_flag.sample_flag=='update' | 14 #if $sample_flag.sample_flag=='update' |
| 21 --rsd_i_sample=$sample_flag.rsd_i_sample | 15 --rsd_i_sample='$sample_flag.rsd_i_sample' |
| 22 --minfrac_sample=$sample_flag.minfrac_sample | 16 --minfrac_sample='$sample_flag.minfrac_sample' |
| 23 --ithres_sample=$sample_flag.ithres_sample | 17 --ithres_sample='$sample_flag.ithres_sample' |
| 24 #end if | 18 #end if |
| 25 | 19 |
| 26 #if $blank_flag.blank_flag=='update' | 20 #if $blank_flag.blank_flag=='update' |
| 27 --rsd_i_blank=$blank_flag.rsd_i_blank | 21 --rsd_i_blank='$blank_flag.rsd_i_blank' |
| 28 --minfrac_blank=$blank_flag.minfrac_blank | 22 --minfrac_blank='$blank_flag.minfrac_blank' |
| 29 --ithres_blank=$blank_flag.ithres_blank | 23 --ithres_blank='$blank_flag.ithres_blank' |
| 30 --blank_class=$blank_flag.blank_class | 24 --blank_class='$blank_flag.blank_class' |
| 31 #end if | 25 #end if |
| 32 | 26 |
| 33 #if $peak_removal.peak_removal=='remove' | 27 #if $peak_removal.peak_removal=='remove' |
| 34 --remove_spectra | 28 --remove_spectra |
| 35 --minfrac_xcms=$peak_removal.minfrac_xcms | 29 --minfrac_xcms='$peak_removal.minfrac_xcms' |
| 36 --mzwid=$peak_removal.mzwid | 30 --mzwid='$peak_removal.mzwid' |
| 37 --bw=$peak_removal.bw | 31 --bw='$peak_removal.bw' |
| 38 #end if | 32 #end if |
| 39 | 33 |
| 40 #if $advanced.advanced=='update' | 34 #if $advanced.advanced=='update' |
| 41 --egauss_thr=$advanced.egauss_thr | 35 --egauss_thr='$advanced.egauss_thr' |
| 42 --polarity=$advanced.polarity | 36 --polarity='$advanced.polarity' |
| 43 --grp_rm_ids=$advanced.grp_rm_ids | 37 --grp_rm_ids='$advanced.grp_rm_ids' |
| 44 --xset_name=$advanced.xset_name | 38 --xset_name='$advanced.xset_name' |
| 45 $advanced.temp_save.value | 39 '$advanced.temp_save.value' |
| 46 | 40 |
| 47 #end if | 41 #end if |
| 48 #if $choose_samp.choose_samp=='yes' | 42 #if $choose_samp.choose_samp=='yes' |
| 49 --samplelist=$choose_samp.samplelist | 43 --samplelist='$choose_samp.samplelist' |
| 50 #end if | 44 #end if |
| 51 ]]></command> | 45 ]]></command> |
| 52 <inputs> | 46 <inputs> |
| 53 <param type="data" name="xset_path" format='rdata.xcms.raw,rdata.xcms.group,rdata.xcms.retcor,rdata.xcms.fillpeaks,rdata' | 47 <param argument="--xset_path" type="data" format='rdata.xcms.raw,rdata.xcms.group,rdata.xcms.retcor,rdata.xcms.fillpeaks,rdata' |
| 54 help="The path to the xcmsSet object saved as an RData file"/> | 48 help="The path to the xcmsSet object saved as an RData file"/> |
| 55 <conditional name="sample_flag"> | 49 <conditional name="sample_flag"> |
| 56 <param name="sample_flag" type="select" label="Change biological sample flag parameters?"> | 50 <param argument="sample_flag" type="select" label="Change biological sample flag parameters?"> |
| 57 <option value="update" >Update biological sample flag parameters</option> | 51 <option value="update" >Update biological sample flag parameters</option> |
| 58 <option value="" selected="true">Use default biological sample flag parameters</option> | 52 <option value="" selected="true">Use default biological sample flag parameters</option> |
| 59 </param> | 53 </param> |
| 60 <when value=""> | 54 <when value=""> |
| 61 </when> | 55 </when> |
| 62 <when value="update"> | 56 <when value="update"> |
| 63 <param name="rsd_i_sample" type="text" label="rsd_i_sample" value="NA" | 57 <param argument="--rsd_i_sample" type="text" label="rsd_i_sample" value="NA" |
| 64 help="Relative Standard Deviation threshold for the sample classes (--rsd_i_sample)"/> | 58 help="Relative Standard Deviation threshold for the sample classes"/> |
| 65 <param name="minfrac_sample" type="float" label="minfrac_sample" value="0.5" min="0.0" max="1" | 59 <param argument="--minfrac_sample" type="float" label="minfrac_sample" value="0.5" min="0.0" max="1" |
| 66 help="minimum fraction of files for features needed for the sample classes (--minfrac_sample)"/> | 60 help="minimum fraction of files for features needed for the sample classes"/> |
| 67 <param name="rsd_rt_sample" type="text" label="rsd_rt_sample" value="NA" | 61 <param argument="--rsd_rt_sample" type="text" label="rsd_rt_sample" value="NA" |
| 68 help="Relative standard Deviation threshold for the retention time of the sample | 62 help="Relative standard Deviation threshold for the retention time of the sample |
| 69 classes (--rsd_rt_sample)"/> | 63 classes"/> |
| 70 <param name="ithres_sample" type="text" label="ithres_sample" value="NA" | 64 <param argument="--ithres_sample" type="text" label="ithres_sample" value="NA" |
| 71 help="Intensity threshold for the sample (--ithres_sample)"/> | 65 help="Intensity threshold for the sample"/> |
| 72 </when> | 66 </when> |
| 73 </conditional> | 67 </conditional> |
| 74 <conditional name="blank_flag"> | 68 <conditional name="blank_flag"> |
| 75 <param name="blank_flag" type="select" label="Change blank flag parameters?"> | 69 <param argument="blank_flag" type="select" label="Change blank flag parameters?"> |
| 76 <option value="update" >Update blank flag parameters</option> | 70 <option value="update" >Update blank flag parameters</option> |
| 77 <option value="" selected="true">Use default blank flag parameters</option> | 71 <option value="" selected="true">Use default blank flag parameters</option> |
| 78 </param> | 72 </param> |
| 79 <when value=""> | 73 <when value=""> |
| 80 </when> | 74 </when> |
| 81 <when value="update"> | 75 <when value="update"> |
| 82 <param name="blank_class" type="text" label="blank_class" value="blank" | 76 <param argument="--blank_class" type="text" label="blank_class" value="blank" |
| 83 help="A string representing the class that will be used for the blank (--blank_class)"/> | 77 help="A string representing the class that will be used for the blank"/> |
| 84 <param name="rsd_i_blank" type="text" label="rsd_i_blank" value="NA" | 78 <param argument="--rsd_i_blank" type="text" label="rsd_i_blank" value="NA" |
| 85 help="RSD threshold for the blank (--rsd_i_blank)"/> | 79 help="RSD threshold for the blank"/> |
| 86 <param name="minfrac_blank" type="float" label="minfrac_blank" value="0.5" min="0.0" max="1" | 80 <param argument="--minfrac_blank" type="float" label="minfrac_blank" value="0.5" min="0.0" max="1" |
| 87 help="minimum fraction of files for features needed for the blank (--minfrac_blank)"/> | 81 help="minimum fraction of files for features needed for the blank"/> |
| 88 <param name="rsd_rt_blank" type="text" label="rsd_rt_blank" value="NA" | 82 <param argument="--rsd_rt_blank" type="text" label="rsd_rt_blank" value="NA" |
| 89 help="RSD threshold for the retention time of the blank (--rsd_rt_blank)"/> | 83 help="RSD threshold for the retention time of the blank"/> |
| 90 <param name="ithres_blank" type="text" label="ithres_blank" value="NA" | 84 <param argument="--ithres_blank" type="text" label="ithres_blank" value="NA" |
| 91 help="Intensity threshold for the blank (--ithres_blank)"/> | 85 help="Intensity threshold for the blank"/> |
| 92 <param name="s2b" type="float" label="s2b" value="10" | 86 <param argument="--s2b" type="float" label="s2b" value="10" |
| 93 help="fold change (sample/blank) needed for sample peak to be allowed. e.g. | 87 help="fold change (sample/blank) needed for sample peak to be allowed. e.g. |
| 94 if s2b set to 10 and the recorded sample 'intensity' value was 100 and blank was 10. | 88 if s2b set to 10 and the recorded sample 'intensity' value was 100 and blank was 10. |
| 95 1000/10 = 100, so sample has fold change higher than the threshold and the peak | 89 1000/10 = 100, so sample has fold change higher than the threshold and the peak |
| 96 is not considered a blank (--s2b)"/> | 90 is not considered a blank"/> |
| 97 </when> | 91 </when> |
| 98 </conditional> | 92 </conditional> |
| 99 <conditional name="peak_removal"> | 93 <conditional name="peak_removal"> |
| 100 <param name="peak_removal" type="select" label="Remove peaks from xcmsSet object?"> | 94 <param name="peak_removal" type="select" label="Remove peaks from xcmsSet object?"> |
| 101 <option value="remove" >Remove peaks and re-group</option> | 95 <option value="remove" >Remove peaks and re-group</option> |
| 102 <option value="" selected="true">Only flag peaks (do not remove and re-group)</option> | 96 <option value="" selected="true">Only flag peaks (do not remove and re-group)</option> |
| 103 </param> | 97 </param> |
| 104 <when value=""> | 98 <when value=""> |
| 105 </when> | 99 </when> |
| 106 <when value="remove"> | 100 <when value="remove"> |
| 107 <param name="minfrac_xcms" type="float" label="minfrac_xcms" value="0.7" min="0.0" max="1" | 101 <param argument="--minfrac_xcms" type="float" label="minfrac_xcms" value="0.7" min="0.0" max="1" |
| 108 help="minfrac for xcms grouping (--minfrac_xcms)"/> | 102 help="minfrac for xcms grouping"/> |
| 109 <param name="mzwid" type="float" label="mzwid" value="0.001" | 103 <param argument="--mzwid" type="float" label="mzwid" value="0.001" |
| 110 help="mzwid for xcms grouping (--minfrac_xcms)"/> | 104 help="mzwid for xcms grouping"/> |
| 111 <param name="bw" type="float" label="bw" value="5" | 105 <param argument="--bw" type="float" label="bw" value="5" |
| 112 help="bw for xcms grouping(--minfrac_xcms)"/> | 106 help="bw for xcms grouping"/> |
| 113 </when> | 107 </when> |
| 114 </conditional> | 108 </conditional> |
| 115 <conditional name="advanced"> | 109 <conditional name="advanced"> |
| 116 <param name="advanced" type="select" label="Advanced parameters"> | 110 <param name="advanced" type="select" label="Advanced parameters"> |
| 117 <option value="update" >Update advanced and testing parameters</option> | 111 <option value="update" >Update advanced and testing parameters</option> |
| 118 <option value="" selected="true">Use default advanced parameters</option> | 112 <option value="" selected="true">Use default advanced parameters</option> |
| 119 </param> | 113 </param> |
| 120 <when value=""> | 114 <when value=""> |
| 121 </when> | 115 </when> |
| 122 <when value="update"> | 116 <when value="update"> |
| 123 <param name="egauss_thr" type="text" label="egauss_thr" value="NA" | 117 <param argument="--egauss_thr" type="text" label="egauss_thr" value="NA" |
| 124 help="Threshold for filtering out non gaussian shaped peaks. Note this only works | 118 help="Threshold for filtering out non gaussian shaped peaks. Note this only works |
| 125 if the 'verbose columns' and 'fit gauss' was used with xcms (--egauss_thr)"/> | 119 if the 'verbose columns' and 'fit gauss' was used with xcms"/> |
| 126 <param name="temp_save" type="boolean" label="temp_save" checked="false" truevalue="--temp_save" falsevalue="" | 120 <param argument="--temp_save" type="boolean" label="temp_save" checked="false" truevalue="--temp_save" falsevalue="" |
| 127 help="Assign True if files for each step saved (for testing purposes) (--temp_save)"/> | 121 help="Assign True if files for each step saved (for testing purposes)"/> |
| 128 <param name="polarity" type="select" label="polarity" | 122 <param argument="--polarity" type="select" label="polarity" |
| 129 help="polarity (just used for naming purpose when files are saved) (--polarity)"> | 123 help="polarity (just used for naming purpose when files are saved)"> |
| 130 <option value="positive">Positive</option> | 124 <option value="positive">Positive</option> |
| 131 <option value="negative" >Negative</option> | 125 <option value="negative" >Negative</option> |
| 132 <option value="NA" selected="true">NA</option> | 126 <option value="NA" selected="true">NA</option> |
| 133 </param> | 127 </param> |
| 134 <param name="grp_rm_ids" type="text" label="grp_rm_ids" value="NA" | 128 <param argument="--grp_rm_ids" type="text" label="grp_rm_ids" value="NA" |
| 135 help="comma seperated list of grouped_xcms peak ids to remove (corresponds to the row from xcms::group output) | 129 help="comma seperated list of grouped_xcms peak ids to remove (corresponds to the row from xcms::group output) |
| 136 e.g '1,20,30,56' | 130 e.g '1,20,30,56'"/> |
| 137 (--grp_rm_ids)"/> | 131 <param argument="--xset_name" type="text" label="xset_name" value="xset" |
| 138 <param name="xset_name" type="text" label="xset_name" value="xset" | 132 help="Name of the xcmsSet object within the RData file"/> |
| 139 help="Name of the xcmsSet object within the RData file (--xset_name)"/> | |
| 140 </when> | 133 </when> |
| 141 </conditional> | 134 </conditional> |
| 142 <conditional name="choose_samp"> | 135 <conditional name="choose_samp"> |
| 143 <param name="choose_samp" type="select" label="Samplelist"> | 136 <param name="choose_samp" type="select" label="Samplelist"> |
| 144 <option value="yes" >Use samplelist</option> | 137 <option value="yes" >Use samplelist</option> |
| 145 <option value="" selected="true">Don't use samplelist</option> | 138 <option value="" selected="true">Don't use samplelist</option> |
| 146 </param> | 139 </param> |
| 147 <when value=""> | 140 <when value=""> |
| 148 </when> | 141 </when> |
| 149 <when value="yes"> | 142 <when value="yes"> |
| 150 <param name="samplelist" type="data" label="samplelist" format="tsv,tabular" | 143 <param argument="--samplelist" type="data" label="samplelist" format="tsv,tabular" |
| 151 help="A samplelist can be provided to find an appriopiate blank class (requires a column 'blank' where 'yes' indicates the class should be used as the blank (--samplelist)"/> | 144 help="A samplelist can be provided to find |
| 145 an appriopiate blank class (requires a column 'blank' where 'yes' indicates the | |
| 146 class should be used as the blank) "/> | |
| 152 | 147 |
| 153 </when> | 148 </when> |
| 154 </conditional> | 149 </conditional> |
| 155 </inputs> | 150 </inputs> |
| 156 <outputs> | 151 <outputs> |
