annotate 0.7.0/lib/help/wsnp.nf @ 17:0e7a0053e4a6

planemo upload
author kkonganti
date Mon, 15 Jul 2024 10:42:02 -0400
parents
children
rev   line source
kkonganti@17 1 // Help text for waterfall_per_snp_cluster.pl (wsnp) within CPIPES.
kkonganti@17 2
kkonganti@17 3 def wsnpHelp(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 'wsnp_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.wsnp_serocol}",
kkonganti@17 15 cliflag: '--serocol',
kkonganti@17 16 clivalue: (params.wsnp_serocol ?: '')
kkonganti@17 17 ],
kkonganti@17 18 'wsnp_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.wsnp_seronamecol}",
kkonganti@17 22 cliflag: '--seronamecol',
kkonganti@17 23 clivalue: (params.wsnp_seronamecol ?: '')
kkonganti@17 24 ],
kkonganti@17 25 'wsnp_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.wsnp_seronamecol}",
kkonganti@17 29 cliflag: '--acc_col',
kkonganti@17 30 clivalue: (params.wsnp_acc_col ?: '')
kkonganti@17 31 ],
kkonganti@17 32 'wsnp_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.wsnp_seronamecol}",
kkonganti@17 36 cliflag: '--target_acc_col',
kkonganti@17 37 clivalue: (params.wsnp_target_acc_col ?: '')
kkonganti@17 38 ],
kkonganti@17 39 'wsnp_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.wsnp_complete_sero}",
kkonganti@17 47 cliflag: '--complete_serotype_name',
kkonganti@17 48 clivalue: (params.wsnp_complete_sero ? ' ' : '')
kkonganti@17 49 ],
kkonganti@17 50 'wsnp_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.wsnp_not_null_serovar}",
kkonganti@17 55 cliflag: '--not_null_serotype_name',
kkonganti@17 56 clivalue: (params.wsnp_not_null_serovar ?: '')
kkonganti@17 57 ],
kkonganti@17 58 'wsnp_i': [
kkonganti@17 59 clihelp: 'Force include this serovar. Ignores ' +
kkonganti@17 60 '--wsnp_complete_sero for only this serovar. ' +
kkonganti@17 61 'Mention multiple serovars separated by a ! (Exclamation mark). ' +
kkonganti@17 62 'Ex: --wsnp_complete_sero I 4,[5],12:i:-!Agona' +
kkonganti@17 63 " Default: ${params.wsnp_i}",
kkonganti@17 64 cliflag: '-i',
kkonganti@17 65 clivalue: (params.wsnp_i ? params.wsnp_i.split(/\!/).join(' -i ').trim().replace(/^\-i\s+/, '') : '')
kkonganti@17 66 ],
kkonganti@17 67 'wsnp_num': [
kkonganti@17 68 clihelp: 'Number of genome accessions to collect per SNP cluster.' +
kkonganti@17 69 " Default: ${params.wsnp_num}",
kkonganti@17 70 cliflag: '-num',
kkonganti@17 71 clivalue: (params.wsnp_num ?: '')
kkonganti@17 72 ]
kkonganti@17 73 ]
kkonganti@17 74
kkonganti@17 75 toolspecs.each {
kkonganti@17 76 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@17 77 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@17 78 }
kkonganti@17 79
kkonganti@17 80 return tool
kkonganti@17 81 }