|
1 | | -<tool id="matchms_metadata_match" name="matchms metadata match" version="@TOOL_VERSION@+galaxy0" profile="21.09"> |
| 1 | +<tool id="matchms_metadata_match" name="matchms metadata match" version="@TOOL_VERSION@+galaxy1" profile="21.09"> |
2 | 2 | <description>matchms metadata match calculation for numeric fields based on tolerance</description> |
3 | 3 |
|
4 | 4 | <macros> |
@@ -85,45 +85,75 @@ scores.to_json("$scores_out") |
85 | 85 |
|
86 | 86 | <tests> |
87 | 87 | <test> |
88 | | - <param name="queries" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
89 | | - <param name="references" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
90 | | - <param name="tolerance" value="60.0" /> |
| 88 | + <conditional name="scores"> |
| 89 | + <param name="use_scores" value="False"/> |
| 90 | + <param name="queries" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
| 91 | + <param name="references" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
| 92 | + </conditional> |
| 93 | + <conditional name="matching"> |
| 94 | + <param name="matching_type" value="difference" /> |
| 95 | + <param name="tolerance" value="60.0" /> |
| 96 | + </conditional> |
91 | 97 | <output name="scores_out" value="metadata_match/ri_match_60.json" ftype="json" /> |
92 | 98 | </test> |
93 | 99 | <test> |
94 | | - <param name="queries" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
95 | | - <param name="references" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
96 | | - <param name="matching_type" value="equal_match" /> |
97 | | - <param name="metadata_match_field" value="smiles" /> |
| 100 | + <conditional name="scores"> |
| 101 | + <param name="use_scores" value="False"/> |
| 102 | + <param name="queries" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
| 103 | + <param name="references" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
| 104 | + </conditional> |
| 105 | + <conditional name="matching"> |
| 106 | + <param name="matching_type" value="equal_match" /> |
| 107 | + <param name="metadata_match_field" value="smiles" /> |
| 108 | + </conditional> |
98 | 109 | <output name="scores_out" value="metadata_match/smiles.json" ftype="json" /> |
99 | 110 | </test> |
100 | 111 | <test> |
101 | | - <param name="use_scores" value="True"/> |
102 | | - <param name="scores_in" value="metadata_match/smiles.json" ftype="json"/> |
103 | | - <param name="matching_type" value="equal_match" /> |
104 | | - <param name="metadata_match_field" value="inchikey" /> |
105 | | - <param name="join_type" value="inner" /> |
| 112 | + <conditional name="scores"> |
| 113 | + <param name="use_scores" value="True"/> |
| 114 | + <param name="scores_in" value="metadata_match/smiles.json" ftype="json"/> |
| 115 | + <param name="join_type" value="inner" /> |
| 116 | + </conditional> |
| 117 | + <conditional name="matching"> |
| 118 | + <param name="matching_type" value="equal_match" /> |
| 119 | + <param name="metadata_match_field" value="inchikey" /> |
| 120 | + </conditional> |
106 | 121 | <output name="scores_out" value="metadata_match/inchi_key_inner.json" ftype="json" /> |
107 | 122 | </test> |
108 | 123 | <test> |
109 | | - <param name="use_scores" value="True"/> |
110 | | - <param name="scores_in" value="metadata_match/ri_match_60.json" ftype="json"/> |
111 | | - <param name="tolerance" value="20.0" /> |
112 | | - <param name="join_type" value="inner" /> |
| 124 | + <conditional name="scores"> |
| 125 | + <param name="use_scores" value="True"/> |
| 126 | + <param name="scores_in" value="metadata_match/ri_match_60.json" ftype="json"/> |
| 127 | + <param name="join_type" value="inner" /> |
| 128 | + </conditional> |
| 129 | + <conditional name="matching"> |
| 130 | + <param name="matching_type" value="difference" /> |
| 131 | + <param name="tolerance" value="20.0" /> |
| 132 | + </conditional> |
113 | 133 | <output name="scores_out" value="metadata_match/inner_join_ri_20.json" ftype="json" /> |
114 | 134 | </test> |
115 | 135 | <test> |
116 | | - <param name="use_scores" value="True"/> |
117 | | - <param name="scores_in" value="metadata_match/ri_match_60.json" ftype="json"/> |
118 | | - <param name="tolerance" value="20.0" /> |
119 | | - <param name="join_type" value="left" /> |
| 136 | + <conditional name="scores"> |
| 137 | + <param name="use_scores" value="True"/> |
| 138 | + <param name="scores_in" value="metadata_match/ri_match_60.json" ftype="json"/> |
| 139 | + <param name="join_type" value="left" /> |
| 140 | + </conditional> |
| 141 | + <conditional name="matching"> |
| 142 | + <param name="matching_type" value="difference" /> |
| 143 | + <param name="tolerance" value="20.0" /> |
| 144 | + </conditional> |
120 | 145 | <output name="scores_out" value="metadata_match/left_join_ri_20.json" ftype="json" /> |
121 | 146 | </test> |
122 | 147 | <test> |
123 | | - <param name="queries" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
124 | | - <param name="references" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
125 | | - <param name="matching_type" value="equal_match" /> |
126 | | - <param name="metadata_match_field" value="formula" /> |
| 148 | + <conditional name="scores"> |
| 149 | + <param name="use_scores" value="False"/> |
| 150 | + <param name="queries" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
| 151 | + <param name="references" value="similarity/rcx_gc-ei_ms_subset.msp" ftype="msp"/> |
| 152 | + </conditional> |
| 153 | + <conditional name="matching"> |
| 154 | + <param name="matching_type" value="equal_match" /> |
| 155 | + <param name="metadata_match_field" value="formula" /> |
| 156 | + </conditional> |
127 | 157 | <output name="scores_out" value="metadata_match/formula.json" ftype="json" /> |
128 | 158 | </test> |
129 | 159 | </tests> |
|
0 commit comments