kkonganti@11: // Help text for salmon index within CPIPES. kkonganti@11: kkonganti@11: def salmonidxHelp(params) { kkonganti@11: kkonganti@11: Map tool = [:] kkonganti@11: Map toolspecs = [:] kkonganti@11: tool.text = [:] kkonganti@11: tool.helpparams = [:] kkonganti@11: kkonganti@11: toolspecs = [ kkonganti@11: 'salmonidx_run': [ kkonganti@11: clihelp: 'Run `salmon index` tool. Default: ' + kkonganti@11: (params.salmonidx_run ?: false), kkonganti@11: cliflag: null, kkonganti@11: clivalue: null kkonganti@11: ], kkonganti@11: 'salmonidx_k': [ kkonganti@11: clihelp: 'The size of k-mers that should be used for the ' + kkonganti@11: " quasi index. Default: ${params.salmonidx_k}", kkonganti@11: cliflag: '-k', kkonganti@11: clivalue: (params.salmonidx_k ?: '') kkonganti@11: ], kkonganti@11: 'salmonidx_gencode': [ kkonganti@11: clihelp: 'This flag will expect the input transcript FASTA ' + kkonganti@11: 'to be in GENCODE format, and will split the transcript ' + kkonganti@11: 'name at the first `|` character. These reduced names ' + kkonganti@11: 'will be used in the output and when looking for these ' + kkonganti@11: 'transcripts in a gene to transcript GTF.' + kkonganti@11: " Default: ${params.salmonidx_gencode}", kkonganti@11: cliflag: '--gencode', kkonganti@11: clivalue: (params.salmonidx_gencode ? ' ' : '') kkonganti@11: ], kkonganti@11: 'salmonidx_features': [ kkonganti@11: clihelp: 'This flag will expect the input reference to be in the ' + kkonganti@11: 'tsv file format, and will split the feature name at the first ' + kkonganti@11: '`tab` character. These reduced names will be used in the output ' + kkonganti@11: 'and when looking for the sequence of the features. GTF.' + kkonganti@11: " Default: ${params.salmonidx_features}", kkonganti@11: cliflag: '--features', kkonganti@11: clivalue: (params.salmonidx_features ? ' ' : '') kkonganti@11: ], kkonganti@11: 'salmonidx_keepDuplicates': [ kkonganti@11: clihelp: 'This flag will disable the default indexing behavior of ' + kkonganti@11: 'discarding sequence-identical duplicate transcripts. If this ' + kkonganti@11: 'flag is passed then duplicate transcripts that appear in the ' + kkonganti@11: 'input will be retained and quantified separately.' + kkonganti@11: " Default: ${params.salmonidx_keepDuplicates}", kkonganti@11: cliflag: '--keepDuplicates', kkonganti@11: clivalue: (params.salmonidx_keepDuplicates ? ' ' : '') kkonganti@11: ], kkonganti@11: 'salmonidx_keepFixedFasta': [ kkonganti@11: clihelp: 'Retain the fixed fasta file (without short ' + kkonganti@11: 'transcripts and duplicates, clipped, etc.) generated ' + kkonganti@11: "during indexing. Default: ${params.salmonidx_keepFixedFasta}", kkonganti@11: cliflag: '--keepFixedFasta', kkonganti@11: clivalue: (params.salmonidx_keepFixedFasta ?: '') kkonganti@11: ], kkonganti@11: 'salmonidx_filterSize': [ kkonganti@11: clihelp: 'The size of the Bloom filter that will be used ' + kkonganti@11: 'by TwoPaCo during indexing. The filter will be of ' + kkonganti@11: 'size 2^{filterSize}. A value of -1 means that the ' + kkonganti@11: 'filter size will be automatically set based on the ' + kkonganti@11: 'number of distinct k-mers in the input, as estimated by ' + kkonganti@11: "nthll. Default: ${params.salmonidx_filterSize}", kkonganti@11: cliflag: '--filterSize', kkonganti@11: clivalue: (params.salmonidx_filterSize ?: '') kkonganti@11: ], kkonganti@11: 'salmonidx_sparse': [ kkonganti@11: clihelp: 'Build the index using a sparse sampling of k-mer ' + kkonganti@11: 'positions This will require less memory (especially ' + kkonganti@11: 'during quantification), but will take longer to construct' + kkonganti@11: 'and can slow down mapping / alignment.' + kkonganti@11: " Default: ${params.salmonidx_sparse}", kkonganti@11: cliflag: '--sparse', kkonganti@11: clivalue: (params.salmonidx_sparse ? ' ' : '') kkonganti@11: ], kkonganti@11: 'salmonidx_n': [ kkonganti@11: clihelp: 'Do not clip poly-A tails from the ends of target ' + kkonganti@11: "sequences. Default: ${params.salmonidx_n}", kkonganti@11: cliflag: '-n', kkonganti@11: clivalue: (params.salmonidx_n ? ' ' : '') kkonganti@11: ] kkonganti@11: ] kkonganti@11: kkonganti@11: toolspecs.each { kkonganti@11: k, v -> tool.text['--' + k] = "${v.clihelp}" kkonganti@11: tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ] kkonganti@11: } kkonganti@11: kkonganti@11: return tool kkonganti@11: }