diff 0.5.0/lib/help/kronaktimporttext.nf @ 0:97cd2f532efe

planemo upload
author kkonganti
date Mon, 31 Mar 2025 14:50:40 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/0.5.0/lib/help/kronaktimporttext.nf	Mon Mar 31 14:50:40 2025 -0400
@@ -0,0 +1,44 @@
+// Help text for ktImportText (krona) within CPIPES.
+
+def kronaktimporttextHelp(params) {
+
+    Map tool = [:]
+    Map toolspecs = [:]
+    tool.text = [:]
+    tool.helpparams = [:]
+
+    toolspecs = [
+        'krona_ktIT_run': [
+            clihelp: 'Run the ktImportText (ktIT) from krona. Default: ' +
+                (params.krona_ktIT_run ?: false),
+            cliflag: null,
+            clivalue: null
+        ],
+        'krona_ktIT_n': [
+            clihelp: 'Name of the highest level. ' +
+                "Default: ${params.krona_ktIT_n}",
+            cliflag: '-n',
+            clivalue: (params.krona_ktIT_n ?: '')
+        ],
+        'krona_ktIT_q': [
+            clihelp: 'Input file(s) do not have a field for quantity. ' +
+                "Default: ${params.krona_ktIT_q}",
+            cliflag: '-q',
+            clivalue: (params.krona_ktIT_q ? ' ' : '')
+        ],
+        'krona_ktIT_c': [
+            clihelp: 'Combine data from each file, rather than creating separate datasets '
+                + 'within the chart. ' +
+                "Default: ${params.krona_ktIT_c}",
+            cliflag: '-c',
+            clivalue: (params.krona_ktIT_c ? ' ' : '')
+        ]
+    ]
+
+    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