kkonganti@17
|
1 // Help text for waterfall_per_computed_serotype.pl (wcomp) within CPIPES.
|
kkonganti@17
|
2
|
kkonganti@17
|
3 def wcompHelp(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 'wcomp_serocol': [
|
kkonganti@17
|
12 clihelp: 'Column number (non 0-based index) of the PDG metadata file ' +
|
kkonganti@17
|
13 'by which the serotypes are collected.' +
|
kkonganti@17
|
14 " Default: ${params.wcomp_serocol}",
|
kkonganti@17
|
15 cliflag: '--serocol',
|
kkonganti@17
|
16 clivalue: (params.wcomp_serocol ?: '')
|
kkonganti@17
|
17 ],
|
kkonganti@17
|
18 'wcomp_seronamecol': [
|
kkonganti@17
|
19 clihelp: 'Column number (non 0-based index) of the PDG metadata file whose column ' +
|
kkonganti@17
|
20 'name is "serovar". ' +
|
kkonganti@17
|
21 " Default: ${params.wcomp_seronamecol}",
|
kkonganti@17
|
22 cliflag: '--seronamecol',
|
kkonganti@17
|
23 clivalue: (params.wcomp_seronamecol ?: '')
|
kkonganti@17
|
24 ],
|
kkonganti@17
|
25 'wcomp_acc_col': [
|
kkonganti@17
|
26 clihelp: 'Column number (non 0-based index) of the PDG metadata file whose column ' +
|
kkonganti@17
|
27 'name is "acc". ' +
|
kkonganti@17
|
28 " Default: ${params.wcomp_seronamecol}",
|
kkonganti@17
|
29 cliflag: '--acc_col',
|
kkonganti@17
|
30 clivalue: (params.wcomp_acc_col ?: '')
|
kkonganti@17
|
31 ],
|
kkonganti@17
|
32 'wcomp_target_acc_col': [
|
kkonganti@17
|
33 clihelp: 'Column number (non 0-based index) of the PDG metadata file whose column ' +
|
kkonganti@17
|
34 'name is "target_acc". ' +
|
kkonganti@17
|
35 " Default: ${params.wcomp_seronamecol}",
|
kkonganti@17
|
36 cliflag: '--target_acc_col',
|
kkonganti@17
|
37 clivalue: (params.wcomp_target_acc_col ?: '')
|
kkonganti@17
|
38 ],
|
kkonganti@17
|
39 'wcomp_complete_sero': [
|
kkonganti@17
|
40 clihelp: 'Skip indexing serotypes when the serotype name in the column ' +
|
kkonganti@17
|
41 'number 49 (non 0-based) of PDG metadata file consists a "-". For example, if ' +
|
kkonganti@17
|
42 'an accession has a serotype= string as such in column ' +
|
kkonganti@17
|
43 'number 49 (non 0-based): ' +
|
kkonganti@17
|
44 '"serotype=- 13:z4,z23:-" ' +
|
kkonganti@17
|
45 'then, the indexing of that accession is skipped.' +
|
kkonganti@17
|
46 " Default: ${params.wcomp_complete_sero}",
|
kkonganti@17
|
47 cliflag: '--complete_serotype_name',
|
kkonganti@17
|
48 clivalue: (params.wcomp_complete_sero ? ' ' : '')
|
kkonganti@17
|
49 ],
|
kkonganti@17
|
50 'wcomp_not_null_serovar': [
|
kkonganti@17
|
51 clihelp: 'Only index the computed_serotype column ' +
|
kkonganti@17
|
52 'i.e. column number 49 (non 0-based), if the serovar column' +
|
kkonganti@17
|
53 ' is not NULL. ' +
|
kkonganti@17
|
54 " Default: ${params.wcomp_not_null_serovar}",
|
kkonganti@17
|
55 cliflag: '--not_null_serotype_name',
|
kkonganti@17
|
56 clivalue: (params.wcomp_not_null_serovar ?: '')
|
kkonganti@17
|
57 ],
|
kkonganti@17
|
58 'wcomp_i': [
|
kkonganti@17
|
59 clihelp: 'Force include this serovar. Ignores ' +
|
kkonganti@17
|
60 '--wcomp_complete_sero for only this serovar. ' +
|
kkonganti@17
|
61 'Mention multiple serovars separated by a ! (Exclamation mark). ' +
|
kkonganti@17
|
62 'Ex: --wcomp_complete_sero I 4,[5],12:i:-!Agona' +
|
kkonganti@17
|
63 " Default: ${params.wcomp_i}",
|
kkonganti@17
|
64 cliflag: '-i',
|
kkonganti@17
|
65 clivalue: (params.wcomp_i ? params.wcomp_i.split(/\!/).join(' -i ').trim().replace(/^\-i\s+/, '') : '')
|
kkonganti@17
|
66 ],
|
kkonganti@17
|
67 'wcomp_num': [
|
kkonganti@17
|
68 clihelp: 'Number of genome accessions to be collected per serotype.' +
|
kkonganti@17
|
69 " Default: ${params.wcomp_num}",
|
kkonganti@17
|
70 cliflag: '-num',
|
kkonganti@17
|
71 clivalue: (params.wcomp_num ?: '')
|
kkonganti@17
|
72 ],
|
kkonganti@17
|
73 'wcomp_min_contig_size': [
|
kkonganti@17
|
74 clihelp: 'Minimum contig size to consider a genome for indexing.' +
|
kkonganti@17
|
75 " Default: ${params.wcomp_min_contig_size}",
|
kkonganti@17
|
76 cliflag: '--min_contig_size',
|
kkonganti@17
|
77 clivalue: (params.wcomp_min_contig_size ?: '')
|
kkonganti@17
|
78 ]
|
kkonganti@17
|
79 ]
|
kkonganti@17
|
80
|
kkonganti@17
|
81 toolspecs.each {
|
kkonganti@17
|
82 k, v -> tool.text['--' + k] = "${v.clihelp}"
|
kkonganti@17
|
83 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
|
kkonganti@17
|
84 }
|
kkonganti@17
|
85
|
kkonganti@17
|
86 return tool
|
kkonganti@17
|
87 } |