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