annotate 0.6.1/lib/help/wsnp.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 waterfall_per_snp_cluster.pl (wsnp) within CPIPES.
kkonganti@11 2
kkonganti@11 3 def wsnpHelp(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 'wsnp_serocol': [
kkonganti@11 12 clihelp: 'Column number (non 0-based index) of the PDG metadata file ' +
kkonganti@11 13 'by which the serotypes are collected.' +
kkonganti@11 14 " Default: ${params.wsnp_serocol}",
kkonganti@11 15 cliflag: '--serocol',
kkonganti@11 16 clivalue: (params.wsnp_serocol ?: '')
kkonganti@11 17 ],
kkonganti@11 18 'wsnp_complete_sero': [
kkonganti@11 19 clihelp: 'Skip indexing serotypes when the serotype name in the column ' +
kkonganti@11 20 'number 49 (non 0-based) of PDG metadata file consists a "-". For example, if ' +
kkonganti@11 21 'an accession has a serotype= string as such in column ' +
kkonganti@11 22 'number 49 (non 0-based): ' +
kkonganti@11 23 '"serotype=- 13:z4,z23:-" ' +
kkonganti@11 24 'then, the indexing of that accession is skipped.' +
kkonganti@11 25 " Default: ${params.wsnp_complete_sero}",
kkonganti@11 26 cliflag: '--complete_serotype_name',
kkonganti@11 27 clivalue: (params.wsnp_complete_sero ? ' ' : '')
kkonganti@11 28 ],
kkonganti@11 29 'wsnp_not_null_serovar': [
kkonganti@11 30 clihelp: 'Only index the computed_serotype column ' +
kkonganti@11 31 'i.e. column number 49 (non 0-based), if the serovar column' +
kkonganti@11 32 ' is not NULL. ' +
kkonganti@11 33 " Default: ${params.wsnp_not_null_serovar}",
kkonganti@11 34 cliflag: '--not_null_serotype_name',
kkonganti@11 35 clivalue: (params.wsnp_not_null_serovar ?: '')
kkonganti@11 36 ],
kkonganti@11 37 'wsnp_i': [
kkonganti@11 38 clihelp: 'Force include this serovar. Ignores ' +
kkonganti@11 39 '--wsnp_complete_sero for only this serovar. ' +
kkonganti@11 40 'Mention multiple serovars separated by a ! (Exclamation mark). ' +
kkonganti@11 41 'Ex: --wsnp_complete_sero I 4,[5],12:i:-!Agona' +
kkonganti@11 42 " Default: ${params.wsnp_i}",
kkonganti@11 43 cliflag: '-i',
kkonganti@11 44 clivalue: (params.wsnp_i ? params.wsnp_i.split(/\!/).join(' -i ').trim().replace(/^\-i\s+/, '') : '')
kkonganti@11 45 ],
kkonganti@11 46 'wsnp_num': [
kkonganti@11 47 clihelp: 'Number of genome accessions to collect per SNP cluster.' +
kkonganti@11 48 " Default: ${params.wsnp_num}",
kkonganti@11 49 cliflag: '-num',
kkonganti@11 50 clivalue: (params.wsnp_num ?: '')
kkonganti@11 51 ]
kkonganti@11 52 ]
kkonganti@11 53
kkonganti@11 54 toolspecs.each {
kkonganti@11 55 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@11 56 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@11 57 }
kkonganti@11 58
kkonganti@11 59 return tool
kkonganti@11 60 }