annotate 0.7.0/lib/help/salmonidx.nf @ 21:4ce0e079377d tip

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