diff 0.6.1/lib/help/gsrpy.nf @ 11:749faef1caa9

"planemo upload"
author kkonganti
date Tue, 05 Sep 2023 11:51:40 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/0.6.1/lib/help/gsrpy.nf	Tue Sep 05 11:51:40 2023 -0400
@@ -0,0 +1,32 @@
+// Help text for gen_salmon_res_table.py (gsrpy) within CPIPES.
+
+def gsrpyHelp(params) {
+
+    Map tool = [:]
+    Map toolspecs = [:]
+    tool.text = [:]
+    tool.helpparams = [:]
+
+    toolspecs = [
+        'gsrpy_run': [
+            clihelp: 'Run the gen_salmon_res_table.py script. Default: ' +
+                (params.gsrpy_run ?: false),
+            cliflag: null,
+            clivalue: null
+        ],
+        'gsrpy_url': [
+            clihelp: 'Generate an additional column in final results table ' +
+                'which links out to NCBI Pathogens Isolate Browser. ' +
+                " Default: ${params.gsrpy_url}",
+            cliflag: '-url',
+            clivalue: (params.gsrpy_url ? ' ' : '')
+        ]
+    ]
+
+    toolspecs.each {
+        k, v -> tool.text['--' + k] = "${v.clihelp}"
+        tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
+    }
+
+    return tool
+}
\ No newline at end of file