annotate 0.1.0/lib/help/mashtree.nf @ 0:c8597e9e1a97

"planemo upload"
author kkonganti
date Mon, 27 Nov 2023 12:37:44 -0500
parents
children
rev   line source
kkonganti@0 1 // Help text for mashtree within CPIPES.
kkonganti@0 2
kkonganti@0 3 def mashtreeHelp(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 'mashtree_run': [
kkonganti@0 12 clihelp: 'Run mashtree tool. Default: ' +
kkonganti@0 13 (params.mashtree_run ?: false),
kkonganti@0 14 cliflag: null,
kkonganti@0 15 clivalue: null
kkonganti@0 16 ],
kkonganti@0 17 'mashtree_fofn': [
kkonganti@0 18 clihelp: 'Input is a file of file names. ' +
kkonganti@0 19 "Default: ${params.mashtree_fofn}",
kkonganti@0 20 cliflag: '--file-of-files',
kkonganti@0 21 clivalue: (params.mashtree_fofn ? ' ' : '')
kkonganti@0 22 ],
kkonganti@0 23 'mashtree_trunclength': [
kkonganti@0 24 clihelp: 'How many characters to keep in filename. ' +
kkonganti@0 25 "Default: ${params.mashtree_trunclength}",
kkonganti@0 26 cliflag: '--truncLength',
kkonganti@0 27 clivalue: (params.mashtree_trunclength ?: '')
kkonganti@0 28 ],
kkonganti@0 29 'mashtree_mindepth': [
kkonganti@0 30 clihelp: 'If mindepth is zero, then it will be chosen in a smart but slower method, ' +
kkonganti@0 31 'to discard lower-abundance kmers. ' +
kkonganti@0 32 "Default: ${params.mashtree_mindepth}",
kkonganti@0 33 cliflag: '--mindepth',
kkonganti@0 34 clivalue: (params.mashtree_mindepth ?: '')
kkonganti@0 35 ],
kkonganti@0 36 'mashtree_kmerlength': [
kkonganti@0 37 clihelp: "The minimum k-mer length. " +
kkonganti@0 38 "Default: ${params.mashtree_kmerlength}",
kkonganti@0 39 cliflag: '--kmerlength',
kkonganti@0 40 clivalue: (params.mashtree_kmerlength ?: '')
kkonganti@0 41 ],
kkonganti@0 42 'mashtree_sketchsize': [
kkonganti@0 43 clihelp: "The minimum `mash` sketch size. " +
kkonganti@0 44 "Default: ${params.mashtree_sketchsize}",
kkonganti@0 45 cliflag: '--sketchsize',
kkonganti@0 46 clivalue: (params.mashtree_sketchsize ?: '')
kkonganti@0 47 ],
kkonganti@0 48 'mashtree_seed': [
kkonganti@0 49 clihelp: "Seed for `mash` sketch. " +
kkonganti@0 50 "Default: ${params.mashtree_seed}",
kkonganti@0 51 cliflag: '--seed',
kkonganti@0 52 clivalue: (params.mashtree_seed ? ' ' : '')
kkonganti@0 53 ],
kkonganti@0 54 'mashtree_genomesize': [
kkonganti@0 55 clihelp: 'Define genome size. ' +
kkonganti@0 56 "Default: ${params.mashtree_genomesize}",
kkonganti@0 57 cliflag: '--genomesize',
kkonganti@0 58 clivalue: (params.mashtree_genomesize ?: '')
kkonganti@0 59 ],
kkonganti@0 60 'mashtree_sigfigs': [
kkonganti@0 61 clihelp: "How many decimal places to use in mash distances. " +
kkonganti@0 62 "Default: ${params.mashtree_sigfigs}",
kkonganti@0 63 cliflag: '--sigfigs',
kkonganti@0 64 clivalue: (params.mashtree_sigfigs ?: '')
kkonganti@0 65 ],
kkonganti@0 66 'mashtree_sortorder': [
kkonganti@0 67 clihelp: 'For neighbor-joining, the sort order can make a difference. ' +
kkonganti@0 68 'Options include: ABC (alphabetical), random, input-order. ' +
kkonganti@0 69 "Default: ${params.mashtree_sortorder}",
kkonganti@0 70 cliflag: '--sort-order',
kkonganti@0 71 clivalue: (params.mashtree_sortorder ?: '')
kkonganti@0 72 ]
kkonganti@0 73 ]
kkonganti@0 74
kkonganti@0 75 toolspecs.each {
kkonganti@0 76 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@0 77 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@0 78 }
kkonganti@0 79
kkonganti@0 80 return tool
kkonganti@0 81 }