annotate 0.2.0/lib/help/mashtree.nf @ 16:bc5d019d2c3a

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