kkonganti@0: // Help text for sourmash sketch dna within CPIPES. kkonganti@0: kkonganti@0: def sourmashsketchHelp(params) { kkonganti@0: kkonganti@0: Map tool = [:] kkonganti@0: Map toolspecs = [:] kkonganti@0: tool.text = [:] kkonganti@0: tool.helpparams = [:] kkonganti@0: kkonganti@0: toolspecs = [ kkonganti@0: 'sourmashsketch_run': [ kkonganti@0: clihelp: 'Run `sourmash sketch dna` tool. Default: ' + kkonganti@0: (params.sourmashsketch_run ?: false), kkonganti@0: cliflag: null, kkonganti@0: clivalue: null kkonganti@0: ], kkonganti@0: 'sourmashsketch_mode': [ kkonganti@0: clihelp: "Select which type of signatures to be created: dna, protein, fromfile or translate. " kkonganti@0: + "Default: ${params.sourmashsketch_mode}", kkonganti@0: cliflag: "${params.sourmashsketch_mode}", kkonganti@0: clivalue: ' ' kkonganti@0: ], kkonganti@0: 'sourmashsketch_p': [ kkonganti@0: clihelp: 'Signature parameters to use. ' + kkonganti@0: "Default: ${params.sourmashsketch_p}", kkonganti@0: cliflag: '-p', kkonganti@0: clivalue: (params.sourmashsketch_p ?: '') kkonganti@0: ], kkonganti@0: 'sourmashsketch_file': [ kkonganti@0: clihelp: ' A text file containing a list of sequence files to load. ' + kkonganti@0: "Default: ${params.sourmashsketch_file}", kkonganti@0: cliflag: '--from-file', kkonganti@0: clivalue: (params.sourmashsketch_file ?: '') kkonganti@0: ], kkonganti@0: 'sourmashsketch_f': [ kkonganti@0: clihelp: 'Recompute signatures even if the file exists. ' + kkonganti@0: "Default: ${params.sourmashsketch_f}", kkonganti@0: cliflag: '-f', kkonganti@0: clivalue: (params.sourmashsketch_f ? ' ' : '') kkonganti@0: ], kkonganti@0: 'sourmashsketch_name': [ kkonganti@0: clihelp: 'Name the signature generated from each file after the first record in the file. ' + kkonganti@0: "Default: ${params.sourmashsketch_name}", kkonganti@0: cliflag: '--name-from-first', kkonganti@0: clivalue: (params.sourmashsketch_name ? ' ' : '') kkonganti@0: ], kkonganti@0: 'sourmashsketch_randomize': [ kkonganti@0: clihelp: 'Shuffle the list of input files randomly. ' + kkonganti@0: "Default: ${params.sourmashsketch_randomize}", kkonganti@0: cliflag: '--randomize', kkonganti@0: clivalue: (params.sourmashsketch_randomize ? ' ' : '') kkonganti@0: ] kkonganti@0: ] kkonganti@0: kkonganti@0: toolspecs.each { kkonganti@0: k, v -> tool.text['--' + k] = "${v.clihelp}" kkonganti@0: tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ] kkonganti@0: } kkonganti@0: kkonganti@0: return tool kkonganti@0: }