# HG changeset patch
# User galaxyp
# Date 1600949868 0
# Node ID 2d856cba192b04193d9ff974a3d149c1d4369541
# Parent 0ab17cc5cf0c000e49e2d3040d0ba5fa6bf639d3
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e8b69ee3aff3c93f745a5de11cc9169130f2e5e"
diff -r 0ab17cc5cf0c -r 2d856cba192b 404-urls.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/404-urls.patch Thu Sep 24 12:17:48 2020 +0000
@@ -0,0 +1,65 @@
+diff -ruN ClusterMassTracesByPrecursor.xml ClusterMassTracesByPrecursor.xml
+--- ClusterMassTracesByPrecursor.xml 2020-09-21 17:02:36.060104555 +0200
++++ ClusterMassTracesByPrecursor.xml 2020-09-21 17:00:02.864815223 +0200
+@@ -75,8 +75,6 @@
+
+
+
++]]>
+
+
+diff -ruN ClusterMassTraces.xml ClusterMassTraces.xml
+--- ClusterMassTraces.xml 2020-09-21 17:02:36.060104555 +0200
++++ ClusterMassTraces.xml 2020-09-21 17:00:22.192722036 +0200
+@@ -69,8 +69,6 @@
+
+
+
++]]>
+
+
+diff -ruN FeatureFinderSuperHirn.xml FeatureFinderSuperHirn.xml
+--- FeatureFinderSuperHirn.xml 2020-09-21 17:02:36.060104555 +0200
++++ FeatureFinderSuperHirn.xml 2020-09-21 17:00:42.372625907 +0200
+@@ -103,8 +103,6 @@
+
+
+
++]]>
+
+
+diff -ruN MSFraggerAdapter.xml MSFraggerAdapter.xml
+--- MSFraggerAdapter.xml 2020-09-21 17:02:36.060104555 +0200
++++ MSFraggerAdapter.xml 2020-09-21 17:01:04.892519985 +0200
+@@ -250,8 +250,6 @@
+
+
+
++]]>
+
+
+diff -ruN SimpleSearchEngine.xml SimpleSearchEngine.xml
+--- SimpleSearchEngine.xml 2020-09-21 17:02:36.060104555 +0200
++++ SimpleSearchEngine.xml 2020-09-21 17:01:33.020389600 +0200
+@@ -5373,8 +5373,6 @@
+
+
+
++]]>
+
+
diff -r 0ab17cc5cf0c -r 2d856cba192b OpenSwathFileSplitter.xml
--- a/OpenSwathFileSplitter.xml Wed Sep 09 19:55:24 2020 +0000
+++ b/OpenSwathFileSplitter.xml Thu Sep 24 12:17:48 2020 +0000
@@ -18,7 +18,7 @@
## Preprocessing
mkdir in &&
ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
-mkdir adv_opts_cond.outputDirectory &&
+mkdir outputDirectory &&
#if "out_qc_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
mkdir out_qc &&
#end if
@@ -32,7 +32,7 @@
-in
'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
-outputDirectory
-adv_opts_cond.outputDirectory/
+outputDirectory/
#if "out_qc_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
-out_qc
'out_qc/output.${gxy2omsext("json")}'
@@ -66,8 +66,8 @@
-
-
+
+
OPTIONAL_OUTPUTS is not None and "out_qc_FLAG" in OPTIONAL_OUTPUTS
diff -r 0ab17cc5cf0c -r 2d856cba192b fill_ctd.py
--- a/fill_ctd.py Wed Sep 09 19:55:24 2020 +0000
+++ b/fill_ctd.py Thu Sep 24 12:17:48 2020 +0000
@@ -150,6 +150,8 @@
# transform values from json that correspond to
# - old style booleans (string + restrictions) -> transformed to a str
+# - new style booleans that get a string (happens for hidden parameters [-test])
+# are transformed to a bool
# - unrestricted ITEMLIST which are represented as strings
# ("=quoted and space separated) in Galaxy -> transform to lists
# - optional data input parameters that have defaults and for which no
@@ -164,7 +166,7 @@
except KeyError:
# few tools use dashes in parameters which are automatically replaced
# by underscores by Galaxy. in these cases the dictionary needs to be
- # updated
+ # updated (better: then dash and the underscore variant are in the dict)
# TODO might be removed later https://github.com/OpenMS/OpenMS/pull/4529
try:
lineage = [_.replace("-", "_") for _ in p.get_lineage(name_only=True)]
@@ -172,12 +174,16 @@
except KeyError:
continue
else:
- setInDict(args, lineage, val)
+ setInDict(args, p.get_lineage(name_only=True), val)
if p.type is str and type(p.restrictions) is _Choices and set(p.restrictions.choices) == set(["true", "false"]):
v = getFromDict(args, p.get_lineage(name_only=True))
setInDict(args, p.get_lineage(name_only=True), str(v).lower())
-
+ elif p.type is bool:
+ v = getFromDict(args, p.get_lineage(name_only=True))
+ if isinstance(v, str):
+ v = (v.lower() == "true")
+ setInDict(args, p.get_lineage(name_only=True), v)
elif p.is_list and (p.restrictions is None or type(p.restrictions) is _NumericRange):
v = getFromDict(args, p.get_lineage(name_only=True))
if type(v) is str:
diff -r 0ab17cc5cf0c -r 2d856cba192b generate.sh
--- a/generate.sh Wed Sep 09 19:55:24 2020 +0000
+++ b/generate.sh Thu Sep 24 12:17:48 2020 +0000
@@ -67,6 +67,7 @@
patch PepNovoAdapter.xml < PepNovoAdapter.patch
patch OMSSAAdapter.xml < OMSSAAdapter.patch
+patch -p0 <404-urls.patch
# #-b version log debug test in_type executable pepnovo_executable param_model_directory rt_concat_trafo_out param_id_pool
diff -r 0ab17cc5cf0c -r 2d856cba192b hardcoded_params.json
--- a/hardcoded_params.json Wed Sep 09 19:55:24 2020 +0000
+++ b/hardcoded_params.json Thu Sep 24 12:17:48 2020 +0000
@@ -164,7 +164,7 @@
"tools": ["PhosphoScoring"]
}, {
"CTD:type": "output-prefix",
- "CTD:required": "true",
+ "CTD:required": true,
"CTD:restrictions": "mzml",
"tools": ["MzMLSplitter"]
}, {
@@ -234,13 +234,14 @@
"#": "output-prefix",
"out_path": [{
"CTD:type": "output-prefix",
- "CTD:required": "true",
+ "CTD:required": true,
"CTD:restrictions": "idXML",
"tools": ["IDRipper"]
}],
"outputDirectory": [{
"CTD:type": "output-prefix",
- "CTD:required": "true",
+ "CTD:advanced": false,
+ "CTD:required": true,
"CTD:restrictions": "mzml",
"tools": ["OpenSwathFileSplitter"]
}]
diff -r 0ab17cc5cf0c -r 2d856cba192b macros_autotest.xml
--- a/macros_autotest.xml Wed Sep 09 19:55:24 2020 +0000
+++ b/macros_autotest.xml Thu Sep 24 12:17:48 2020 +0000
@@ -1475,6 +1475,8 @@
+
+
@@ -26315,4 +26317,4 @@
-
+
diff -r 0ab17cc5cf0c -r 2d856cba192b macros_discarded_auto.xml
--- a/macros_discarded_auto.xml Wed Sep 09 19:55:24 2020 +0000
+++ b/macros_discarded_auto.xml Thu Sep 24 12:17:48 2020 +0000
@@ -7,7 +7,7 @@
-
+