annotate 0.5.0/lib/help/salmonidx.nf @ 1:365849f031fd

"planemo upload"
author kkonganti
date Mon, 05 Jun 2023 18:48:51 -0400
parents
children
rev   line source
kkonganti@1 1 // Help text for salmon index within CPIPES.
kkonganti@1 2
kkonganti@1 3 def salmonidxHelp(params) {
kkonganti@1 4
kkonganti@1 5 Map tool = [:]
kkonganti@1 6 Map toolspecs = [:]
kkonganti@1 7 tool.text = [:]
kkonganti@1 8 tool.helpparams = [:]
kkonganti@1 9
kkonganti@1 10 toolspecs = [
kkonganti@1 11 'salmonidx_run': [
kkonganti@1 12 clihelp: 'Run `salmon index` tool. Default: ' +
kkonganti@1 13 (params.salmonidx_run ?: false),
kkonganti@1 14 cliflag: null,
kkonganti@1 15 clivalue: null
kkonganti@1 16 ],
kkonganti@1 17 'salmonidx_k': [
kkonganti@1 18 clihelp: 'The size of k-mers that should be used for the ' +
kkonganti@1 19 " quasi index. Default: ${params.salmonidx_k}",
kkonganti@1 20 cliflag: '-k',
kkonganti@1 21 clivalue: (params.salmonidx_k ?: '')
kkonganti@1 22 ],
kkonganti@1 23 'salmonidx_gencode': [
kkonganti@1 24 clihelp: 'This flag will expect the input transcript FASTA ' +
kkonganti@1 25 'to be in GENCODE format, and will split the transcript ' +
kkonganti@1 26 'name at the first `|` character. These reduced names ' +
kkonganti@1 27 'will be used in the output and when looking for these ' +
kkonganti@1 28 'transcripts in a gene to transcript GTF.' +
kkonganti@1 29 " Default: ${params.salmonidx_gencode}",
kkonganti@1 30 cliflag: '--gencode',
kkonganti@1 31 clivalue: (params.salmonidx_gencode ? ' ' : '')
kkonganti@1 32 ],
kkonganti@1 33 'salmonidx_features': [
kkonganti@1 34 clihelp: 'This flag will expect the input reference to be in the ' +
kkonganti@1 35 'tsv file format, and will split the feature name at the first ' +
kkonganti@1 36 '`tab` character. These reduced names will be used in the output ' +
kkonganti@1 37 'and when looking for the sequence of the features. GTF.' +
kkonganti@1 38 " Default: ${params.salmonidx_features}",
kkonganti@1 39 cliflag: '--features',
kkonganti@1 40 clivalue: (params.salmonidx_features ? ' ' : '')
kkonganti@1 41 ],
kkonganti@1 42 'salmonidx_keepDuplicates': [
kkonganti@1 43 clihelp: 'This flag will disable the default indexing behavior of ' +
kkonganti@1 44 'discarding sequence-identical duplicate transcripts. If this ' +
kkonganti@1 45 'flag is passed then duplicate transcripts that appear in the ' +
kkonganti@1 46 'input will be retained and quantified separately.' +
kkonganti@1 47 " Default: ${params.salmonidx_keepDuplicates}",
kkonganti@1 48 cliflag: '--keepDuplicates',
kkonganti@1 49 clivalue: (params.salmonidx_keepDuplicates ? ' ' : '')
kkonganti@1 50 ],
kkonganti@1 51 'salmonidx_keepFixedFasta': [
kkonganti@1 52 clihelp: 'Retain the fixed fasta file (without short ' +
kkonganti@1 53 'transcripts and duplicates, clipped, etc.) generated ' +
kkonganti@1 54 "during indexing. Default: ${params.salmonidx_keepFixedFasta}",
kkonganti@1 55 cliflag: '--keepFixedFasta',
kkonganti@1 56 clivalue: (params.salmonidx_keepFixedFasta ?: '')
kkonganti@1 57 ],
kkonganti@1 58 'salmonidx_filterSize': [
kkonganti@1 59 clihelp: 'The size of the Bloom filter that will be used ' +
kkonganti@1 60 'by TwoPaCo during indexing. The filter will be of ' +
kkonganti@1 61 'size 2^{filterSize}. A value of -1 means that the ' +
kkonganti@1 62 'filter size will be automatically set based on the ' +
kkonganti@1 63 'number of distinct k-mers in the input, as estimated by ' +
kkonganti@1 64 "nthll. Default: ${params.salmonidx_filterSize}",
kkonganti@1 65 cliflag: '--filterSize',
kkonganti@1 66 clivalue: (params.salmonidx_filterSize ?: '')
kkonganti@1 67 ],
kkonganti@1 68 'salmonidx_sparse': [
kkonganti@1 69 clihelp: 'Build the index using a sparse sampling of k-mer ' +
kkonganti@1 70 'positions This will require less memory (especially ' +
kkonganti@1 71 'during quantification), but will take longer to construct' +
kkonganti@1 72 'and can slow down mapping / alignment.' +
kkonganti@1 73 " Default: ${params.salmonidx_sparse}",
kkonganti@1 74 cliflag: '--sparse',
kkonganti@1 75 clivalue: (params.salmonidx_sparse ? ' ' : '')
kkonganti@1 76 ],
kkonganti@1 77 'salmonidx_n': [
kkonganti@1 78 clihelp: 'Do not clip poly-A tails from the ends of target ' +
kkonganti@1 79 "sequences. Default: ${params.salmonidx_n}",
kkonganti@1 80 cliflag: '-n',
kkonganti@1 81 clivalue: (params.salmonidx_n ? ' ' : '')
kkonganti@1 82 ]
kkonganti@1 83 ]
kkonganti@1 84
kkonganti@1 85 toolspecs.each {
kkonganti@1 86 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@1 87 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@1 88 }
kkonganti@1 89
kkonganti@1 90 return tool
kkonganti@1 91 }