kkonganti@0: // Help text for `polypolish within CPIPES. kkonganti@0: kkonganti@0: def polypolishHelp(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: 'polypolish_run': [ kkonganti@0: clihelp: 'Run polypolish tool. Default: ' + kkonganti@0: (params.polypolish_run ?: false), kkonganti@0: cliflag: null, kkonganti@0: clivalue: null kkonganti@0: ], kkonganti@0: 'polypolish_d': [ kkonganti@0: clihelp: 'A base must occur at least this many times in the pileup to be considered valid. ' + kkonganti@0: "Default: ${params.polypolish_d}", kkonganti@0: cliflag: '-d', kkonganti@0: clivalue: (params.polypolish_d ?: '') kkonganti@0: ], kkonganti@0: 'polypolish_i': [ kkonganti@0: clihelp: 'A base must make up less than this fraction of the read depth to be considered invalid. ' + kkonganti@0: "Default: ${params.polypolish_i}", kkonganti@0: cliflag: '-i', kkonganti@0: clivalue: (params.polypolish_i ?: '') kkonganti@0: ], kkonganti@0: 'polypolish_m': [ kkonganti@0: clihelp: 'Ignore alignments with more than this many mismatches and indels. ' + kkonganti@0: "Default: ${params.polypolish_m}", kkonganti@0: cliflag: '-m', kkonganti@0: clivalue: (params.polypolish_m ?: '') kkonganti@0: ], kkonganti@0: 'polypolish_v': [ kkonganti@0: clihelp: 'A base must make up at least this fraction of the read depth to be considered valid. ' + kkonganti@0: "Default: ${params.polypolish_v}", kkonganti@0: cliflag: '-v', kkonganti@0: clivalue: (params.polypolish_v ?: '') 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: }