Mercurial > repos > ufz > saqc_executor
comparison macros.xml @ 0:99e2019c318c draft default tip
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/blob/main/tools/saqc/ commit b674325a07b6e964e25cd65967149018dc2671fe
| author | ufz |
|---|---|
| date | Sat, 16 Aug 2025 11:43:38 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:99e2019c318c |
|---|---|
| 1 <macros> | |
| 2 <xml name="requirements"> | |
| 3 <requirements> | |
| 4 <requirement type="package" version="@TOOL_VERSION@">saqc</requirement> | |
| 5 </requirements> | |
| 6 </xml> | |
| 7 | |
| 8 <token name="@TOOL_VERSION@">2.6.0</token> | |
| 9 <token name="@VERSION_SUFFIX@">0</token> | |
| 10 | |
| 11 <xml name="citations"> | |
| 12 <citations> | |
| 13 <citation type="doi">https://doi.org/10.1016/j.envsoft.2023.105809</citation> | |
| 14 </citations> | |
| 15 </xml> | |
| 16 | |
| 17 <xml name="field"> | |
| 18 <param argument="field" | |
| 19 label="Field" | |
| 20 optional="false" | |
| 21 value="" | |
| 22 type="text" | |
| 23 help="Variable to process"/> | |
| 24 </xml> | |
| 25 | |
| 26 <xml name="field_multiple"> | |
| 27 <repeat name="field_repeat" title="field(s)" min="1"> | |
| 28 <param argument="field" | |
| 29 label="Field" | |
| 30 optional="false" | |
| 31 value="" | |
| 32 type="text" | |
| 33 help="Variable to process"/> | |
| 34 </repeat> | |
| 35 </xml> | |
| 36 | |
| 37 <xml name="flag"> | |
| 38 <param argument="flag" | |
| 39 label="Flag" | |
| 40 optional="true" | |
| 41 value="255.0" | |
| 42 type="float" | |
| 43 help="The flag value the function uses to mark observations"/> | |
| 44 </xml> | |
| 45 | |
| 46 <xml name="saqc_tests"> | |
| 47 <tests> | |
| 48 <expand macro="config_tests"/> | |
| 49 <test> | |
| 50 <param name="data" value="test1/data.csv" ftype="csv"/> | |
| 51 <repeat name="methods_repeat"> | |
| 52 <conditional name="module_cond"> | |
| 53 <param name="module_select" value="outliers"/> | |
| 54 <conditional name="method_cond"> | |
| 55 <param name="method_select" value="flagRange"/> | |
| 56 <param name="field" value="SM2"/> | |
| 57 <param name="max" value="60.0"/> | |
| 58 <param name="min" value="10.0"/> | |
| 59 | |
| 60 <param name="flag" value="255.0"/> | |
| 61 </conditional> | |
| 62 </conditional> | |
| 63 </repeat> | |
| 64 <repeat name="methods_repeat"> | |
| 65 <conditional name="module_cond"> | |
| 66 <param name="module_select" value="outliers"/> | |
| 67 <conditional name="method_cond"> | |
| 68 | |
| 69 <param name="method_select" value="flagZScore"/> | |
| 70 | |
| 71 <repeat name="field_repeat"> | |
| 72 <param name="field" value="SM2"/> | |
| 73 </repeat> | |
| 74 <param name="center" value="false"/> | |
| 75 <conditional name="window_cond"> | |
| 76 <param name="window_select_type" value="timedelta"/> | |
| 77 <param name="window" value="30d"/> | |
| 78 </conditional> | |
| 79 <param name="thresh" value="3.5"/> | |
| 80 <param name="method" value="modified"/> | |
| 81 | |
| 82 <param name="flag" value="255.0"/> | |
| 83 </conditional> | |
| 84 </conditional> | |
| 85 </repeat> | |
| 86 <repeat name="methods_repeat"> | |
| 87 <conditional name="module_cond"> | |
| 88 <param name="module_select" value="tools"/> | |
| 89 <conditional name="method_cond"> | |
| 90 <param name="method_select" value="plot"/> | |
| 91 <param name="field" value="SM2"/> | |
| 92 <param name="path" value="test"/> | |
| 93 <conditional name="history_cond"> | |
| 94 <param name="history_select_type" value="valid" /> | |
| 95 <param name="history" value="valid" /> | |
| 96 </conditional> | |
| 97 <param name="mode" value="oneplot"/> | |
| 98 <param name="max_gap" value="" /> | |
| 99 <param name="xscope" value="" /> | |
| 100 <param name="yscope" value="" /> | |
| 101 <param name="dfilter" value="inf" /> | |
| 102 </conditional> | |
| 103 </conditional> | |
| 104 </repeat> | |
| 105 | |
| 106 <output name="output" value="test1/out.csv" ftype="csv"/> | |
| 107 <output name="config_out" ftype="txt"> | |
| 108 <assert_contents> | |
| 109 <has_n_lines n="4"/> | |
| 110 <has_n_columns n="2" sep=";"/> | |
| 111 <has_text_matching expression="flagRange.*max=60.0.*min=10.0"/> | |
| 112 <has_text_matching expression='flagZScore.*method="modified".*thresh=3.5.*window="30d"'/> | |
| 113 <has_text_matching expression='plot.*dfilter=float\('inf'\).*history="valid".*path="test"'/> | |
| 114 </assert_contents> | |
| 115 </output> | |
| 116 | |
| 117 <output_collection name="plots" type="list"> | |
| 118 <element name="test" ftype="png"> | |
| 119 <assert_contents> | |
| 120 <has_text text="PNG"/> | |
| 121 <has_size value="120k" delta="10k"/> | |
| 122 </assert_contents> | |
| 123 </element> | |
| 124 </output_collection> | |
| 125 </test> | |
| 126 </tests> | |
| 127 </xml> | |
| 128 </macros> |
