annotate 0.6.1/lib/help/salmonidx.nf @ 13:74baf1a6c3bd

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