Mercurial > repos > frogs > frogs_stat
comparison deseq2_preprocess_macros.xml @ 0:6507a8d42a4f draft default tip
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
| author | frogs |
|---|---|
| date | Wed, 04 Feb 2026 13:16:44 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:6507a8d42a4f |
|---|---|
| 1 <?xml version="1.0"?> | |
| 2 <macros> | |
| 3 <token name="@DESEQ2_ASV_PREPROCESS_CMD_LINE@"> | |
| 4 deseq2_preprocess.py | |
| 5 --analysis-type 'ASV' | |
| 6 --phyloseq-rdata '$phyloseq_rdata' | |
| 7 #if $multiple.correction == 'true' | |
| 8 --var-exp '$var_exp${multiple.model_type}${multiple.conf_factor}' | |
| 9 #else | |
| 10 --var-exp '$var_exp' | |
| 11 #end if | |
| 12 --output-deseq-rdata '$ASV_deseq_rdata' | |
| 13 </token> | |
| 14 | |
| 15 <xml name="deseq2_asv_preprocess_inputs"> | |
| 16 <!-- Files --> | |
| 17 <param argument="--phyloseq-rdata" type="data" format="rdata" label="Phyloseq object (.Rdata)" help="Rdata file generated by the FROGS Stat 'Phyloseq Import data' tool."/> | |
| 18 <!-- Parameters --> | |
| 19 <param argument="--var-exp" type="text" label="Experimental variable" help="Sample metadata variable expected to influence ASV abundances (e.g., Treatment, Environment, Site, etc.)."> | |
| 20 <expand macro="restricted_sanitizer_validator"/> | |
| 21 </param> | |
| 22 <conditional name="multiple"> | |
| 23 <param name="correction" type="select" label="Correct for a confounding factor?" help="If yes, specify an additional sample metadata variable that could affect ASV abundances."> | |
| 24 <option value="true">True</option> | |
| 25 <option value="false" selected="true">False</option> | |
| 26 </param> | |
| 27 <when value="false"/> | |
| 28 <when value="true"> | |
| 29 <param name="conf_factor" type="text" label="Confounding factor" help="Secondary sample metadata variable to account for (e.g., Gender, Batch, Sampling date, etc.)."> | |
| 30 <expand macro="restricted_sanitizer_validator"/> | |
| 31 </param> | |
| 32 <param name="model_type" type="select" multiple="false" label="Model type" help="Choose an additive model (+) if the effects of the two variables are independent, or an interaction model (*) if their effects are expected to depend on each other."> | |
| 33 <option value="+" selected="true">Linear (+)</option> | |
| 34 <option value="*">Interaction (*)</option> | |
| 35 </param> | |
| 36 </when> | |
| 37 </conditional> | |
| 38 </xml> | |
| 39 | |
| 40 <!-- Test --> | |
| 41 <xml name="deseq2_asv_preprocess_test_input"> | |
| 42 <param name="phyloseq_rdata" value="references/16-phylo_import.Rdata" /> | |
| 43 <param name="var_exp" value="EnvType" /> | |
| 44 </xml> | |
| 45 | |
| 46 <xml name="deseq2_asv_preprocess_test_output"> | |
| 47 <output name="ASV_deseq_rdata" count="1" file="references/23-deseq2_preprocess_asv.Rdata" compare="sim_size" delta="100"/> | |
| 48 </xml> | |
| 49 | |
| 50 <token name="@DESEQ2_FUN_PREPROCESS_CMD_LINE@"> | |
| 51 deseq2_preprocess.py | |
| 52 --analysis-type 'FUNCTION' | |
| 53 --input-functions-abund '$input_functions_abund' | |
| 54 --sample-metadata-tsv '$sample_metadata_tsv' | |
| 55 | |
| 56 #if $multiple.correction == 'true' | |
| 57 --var-exp '$var_exp${multiple.model_type}${multiple.conf_factor}' | |
| 58 #else | |
| 59 --var-exp '$var_exp' | |
| 60 #end if | |
| 61 | |
| 62 --output-phyloseq-rdata '$FUN_phyloseq_rdata' | |
| 63 --output-deseq-rdata '$FUN_deseq_rdata' | |
| 64 | |
| 65 | |
| 66 | |
| 67 </token> | |
| 68 | |
| 69 <xml name="deseq2_fun_preprocess_inputs"> | |
| 70 <!-- Files --> | |
| 71 <param argument="--input-functions-abund" type="data" format="tsv,tabular" label="Function abundances file (.tsv) " help="Input file containing predicted function abundances (e.g., 'picrust2_functions: EC_unstrat_abundance.tsv' generated by the FROGS Func 'picrust2_function' tool)."/> | |
| 72 <param argument="--sample-metadata-tsv" type="data" format="tabular,tsv" label="Sample metadata file (.tsv)" help="Tabular file containing metadata describing each sample (e.g., Treatment, Site, Host type, etc.)."/> | |
| 73 <!-- Parameters --> | |
| 74 <param argument="--var-exp" type="text" label="Experimental variable" help="Sample metadata variable expected to influence functional abundances (e.g., Treatment, Environment, Site, etc.)."> | |
| 75 <expand macro="restricted_sanitizer_validator"/> | |
| 76 </param> | |
| 77 <conditional name="multiple"> | |
| 78 <param name="correction" type="select" label="Correct for a confounding factor?" help="If yes, specify an additional sample metadata variable to account for (e.g., Batch, Gender, etc.)."> | |
| 79 <option value="true">True</option> | |
| 80 <option value="false" selected="true">False</option> | |
| 81 </param> | |
| 82 <when value="false"/> | |
| 83 <when value="true"> | |
| 84 <param name="conf_factor" type="text" label="Confounding factor" help="Secondary sample metadata variable to control for (e.g., Gender, Batch, Sampling date, etc.)."> | |
| 85 <expand macro="restricted_sanitizer_validator"/> | |
| 86 </param> | |
| 87 <param name="model_type" type="select" multiple="false" label="Model type" help="Choose an additive model (+) if the effects of both variables are independent, or an interaction model (*) if their effects depend on each other."> | |
| 88 <option value="+" selected="true">Linear (+)</option> | |
| 89 <option value="*">Interaction (*)</option> | |
| 90 </param> | |
| 91 </when> | |
| 92 </conditional> | |
| 93 </xml> | |
| 94 | |
| 95 <!-- Test --> | |
| 96 <xml name="deseq2_fun_preprocess_test_input"> | |
| 97 <param name="sample_metadata_tsv" value="input/sample_metadata.tsv"/> | |
| 98 <param name="input_functions_abund" value="input/frogsfunc_functions_unstrat_EC.tsv" /> | |
| 99 <param name="var_exp" value="EnvType" /> | |
| 100 </xml> | |
| 101 | |
| 102 <xml name="deseq2_fun_preprocess_test_output"> | |
| 103 <!-- Deseq2 is influenced by other intermediate libraries or packages and results are hard to compare --> | |
| 104 <!-- <output name="FUN_deseq_rdata" count="1" file="references/23-deseq2_preprocess_func.Rdata" compare="sim_size" delta="4000"/> --> | |
| 105 <output name="FUN_phyloseq_rdata" count="1" file="references/23-phyloseq_functions.Rdata" compare="sim_size" delta="10"/> | |
| 106 </xml> | |
| 107 </macros> |
