kkonganti@11: // Help text for waterfall_per_snp_cluster.pl (wsnp) within CPIPES. kkonganti@11: kkonganti@11: def wsnpHelp(params) { kkonganti@11: kkonganti@11: Map tool = [:] kkonganti@11: Map toolspecs = [:] kkonganti@11: tool.text = [:] kkonganti@11: tool.helpparams = [:] kkonganti@11: kkonganti@11: toolspecs = [ kkonganti@11: 'wsnp_serocol': [ kkonganti@11: clihelp: 'Column number (non 0-based index) of the PDG metadata file ' + kkonganti@11: 'by which the serotypes are collected.' + kkonganti@11: " Default: ${params.wsnp_serocol}", kkonganti@11: cliflag: '--serocol', kkonganti@11: clivalue: (params.wsnp_serocol ?: '') kkonganti@11: ], kkonganti@11: 'wsnp_complete_sero': [ kkonganti@11: clihelp: 'Skip indexing serotypes when the serotype name in the column ' + kkonganti@11: 'number 49 (non 0-based) of PDG metadata file consists a "-". For example, if ' + kkonganti@11: 'an accession has a serotype= string as such in column ' + kkonganti@11: 'number 49 (non 0-based): ' + kkonganti@11: '"serotype=- 13:z4,z23:-" ' + kkonganti@11: 'then, the indexing of that accession is skipped.' + kkonganti@11: " Default: ${params.wsnp_complete_sero}", kkonganti@11: cliflag: '--complete_serotype_name', kkonganti@11: clivalue: (params.wsnp_complete_sero ? ' ' : '') kkonganti@11: ], kkonganti@11: 'wsnp_not_null_serovar': [ kkonganti@11: clihelp: 'Only index the computed_serotype column ' + kkonganti@11: 'i.e. column number 49 (non 0-based), if the serovar column' + kkonganti@11: ' is not NULL. ' + kkonganti@11: " Default: ${params.wsnp_not_null_serovar}", kkonganti@11: cliflag: '--not_null_serotype_name', kkonganti@11: clivalue: (params.wsnp_not_null_serovar ?: '') kkonganti@11: ], kkonganti@11: 'wsnp_i': [ kkonganti@11: clihelp: 'Force include this serovar. Ignores ' + kkonganti@11: '--wsnp_complete_sero for only this serovar. ' + kkonganti@11: 'Mention multiple serovars separated by a ! (Exclamation mark). ' + kkonganti@11: 'Ex: --wsnp_complete_sero I 4,[5],12:i:-!Agona' + kkonganti@11: " Default: ${params.wsnp_i}", kkonganti@11: cliflag: '-i', kkonganti@11: clivalue: (params.wsnp_i ? params.wsnp_i.split(/\!/).join(' -i ').trim().replace(/^\-i\s+/, '') : '') kkonganti@11: ], kkonganti@11: 'wsnp_num': [ kkonganti@11: clihelp: 'Number of genome accessions to collect per SNP cluster.' + kkonganti@11: " Default: ${params.wsnp_num}", kkonganti@11: cliflag: '-num', kkonganti@11: clivalue: (params.wsnp_num ?: '') kkonganti@11: ] kkonganti@11: ] kkonganti@11: kkonganti@11: toolspecs.each { kkonganti@11: k, v -> tool.text['--' + k] = "${v.clihelp}" kkonganti@11: tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ] kkonganti@11: } kkonganti@11: kkonganti@11: return tool kkonganti@11: }