annotate 0.7.0/lib/help/sourmashgather.nf @ 20:133571bf891f

planemo upload
author kkonganti
date Mon, 15 Jul 2024 11:42:00 -0400
parents 0e7a0053e4a6
children
rev   line source
kkonganti@17 1 // Help text for sourmash gather within CPIPES.
kkonganti@17 2
kkonganti@17 3 def sourmashgatherHelp(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 'sourmashgather_run': [
kkonganti@17 12 clihelp: 'Run `sourmash gather` tool. Default: ' +
kkonganti@17 13 (params.sourmashgather_run ?: false),
kkonganti@17 14 cliflag: null,
kkonganti@17 15 clivalue: null
kkonganti@17 16 ],
kkonganti@17 17 'sourmashgather_n': [
kkonganti@17 18 clihelp: 'Number of results to report. ' +
kkonganti@17 19 'By default, will terminate at --sourmashgather_thr_bp value. ' +
kkonganti@17 20 "Default: ${params.sourmashgather_n}",
kkonganti@17 21 cliflag: '-n',
kkonganti@17 22 clivalue: (params.sourmashgather_n ?: '')
kkonganti@17 23 ],
kkonganti@17 24 'sourmashgather_thr_bp': [
kkonganti@17 25 clihelp: 'Reporting threshold (in bp) for estimated overlap with remaining query. ' +
kkonganti@17 26 "Default: ${params.sourmashgather_thr_bp}",
kkonganti@17 27 cliflag: '--threshold-bp',
kkonganti@17 28 clivalue: (params.sourmashgather_thr_bp ?: '')
kkonganti@17 29 ],
kkonganti@17 30 'sourmashgather_ignoreabn': [
kkonganti@17 31 clihelp: 'Do NOT use k-mer abundances if present. ' +
kkonganti@17 32 "Default: ${params.sourmashgather_ignoreabn}",
kkonganti@17 33 cliflag: '--ignore-abundance',
kkonganti@17 34 clivalue: (params.sourmashgather_ignoreabn ? ' ' : '')
kkonganti@17 35 ],
kkonganti@17 36 'sourmashgather_prefetch': [
kkonganti@17 37 clihelp: 'Use prefetch before gather. ' +
kkonganti@17 38 "Default: ${params.sourmashgather_prefetch}",
kkonganti@17 39 cliflag: '--prefetch',
kkonganti@17 40 clivalue: (params.sourmashgather_prefetch ? ' ' : '')
kkonganti@17 41 ],
kkonganti@17 42 'sourmashgather_noprefetch': [
kkonganti@17 43 clihelp: 'Do not use prefetch before gather. ' +
kkonganti@17 44 "Default: ${params.sourmashgather_noprefetch}",
kkonganti@17 45 cliflag: '--no-prefetch',
kkonganti@17 46 clivalue: (params.sourmashgather_noprefetch ? ' ' : '')
kkonganti@17 47 ],
kkonganti@17 48 'sourmashgather_ani_ci': [
kkonganti@17 49 clihelp: 'Output confidence intervals for ANI estimates. ' +
kkonganti@17 50 "Default: ${params.sourmashgather_ani_ci}",
kkonganti@17 51 cliflag: '--estimate-ani-ci',
kkonganti@17 52 clivalue: (params.sourmashgather_ani_ci ? ' ' : '')
kkonganti@17 53 ],
kkonganti@17 54 'sourmashgather_k': [
kkonganti@17 55 clihelp: 'The k-mer size to select. ' +
kkonganti@17 56 "Default: ${params.sourmashgather_k}",
kkonganti@17 57 cliflag: '-k',
kkonganti@17 58 clivalue: (params.sourmashgather_k ?: '')
kkonganti@17 59 ],
kkonganti@17 60 'sourmashgather_protein': [
kkonganti@17 61 clihelp: 'Choose a protein signature. ' +
kkonganti@17 62 "Default: ${params.sourmashgather_protein}",
kkonganti@17 63 cliflag: '--protein',
kkonganti@17 64 clivalue: (params.sourmashgather_protein ? ' ' : '')
kkonganti@17 65 ],
kkonganti@17 66 'sourmashgather_noprotein': [
kkonganti@17 67 clihelp: 'Do not choose a protein signature. ' +
kkonganti@17 68 "Default: ${params.sourmashgather_noprotein}",
kkonganti@17 69 cliflag: '--no-protein',
kkonganti@17 70 clivalue: (params.sourmashgather_noprotein ? ' ' : '')
kkonganti@17 71 ],
kkonganti@17 72 'sourmashgather_dayhoff': [
kkonganti@17 73 clihelp: 'Choose Dayhoff-encoded amino acid signatures. ' +
kkonganti@17 74 "Default: ${params.sourmashgather_dayhoff}",
kkonganti@17 75 cliflag: '--dayhoff',
kkonganti@17 76 clivalue: (params.sourmashgather_dayhoff ? ' ' : '')
kkonganti@17 77 ],
kkonganti@17 78 'sourmashgather_nodayhoff': [
kkonganti@17 79 clihelp: 'Do not choose Dayhoff-encoded amino acid signatures. ' +
kkonganti@17 80 "Default: ${params.sourmashgather_nodayhoff}",
kkonganti@17 81 cliflag: '--no-dayhoff',
kkonganti@17 82 clivalue: (params.sourmashgather_nodayhoff ? ' ' : '')
kkonganti@17 83 ],
kkonganti@17 84 'sourmashgather_hp': [
kkonganti@17 85 clihelp: 'Choose hydrophobic-polar-encoded amino acid signatures. ' +
kkonganti@17 86 "Default: ${params.sourmashgather_hp}",
kkonganti@17 87 cliflag: '--hp',
kkonganti@17 88 clivalue: (params.sourmashgather_hp ? ' ' : '')
kkonganti@17 89 ],
kkonganti@17 90 'sourmashgather_nohp': [
kkonganti@17 91 clihelp: 'Do not choose hydrophobic-polar-encoded amino acid signatures. ' +
kkonganti@17 92 "Default: ${params.sourmashgather_nohp}",
kkonganti@17 93 cliflag: '--no-hp',
kkonganti@17 94 clivalue: (params.sourmashgather_nohp ? ' ' : '')
kkonganti@17 95 ],
kkonganti@17 96 'sourmashgather_dna': [
kkonganti@17 97 clihelp: 'Choose DNA signature. ' +
kkonganti@17 98 "Default: ${params.sourmashgather_dna}",
kkonganti@17 99 cliflag: '--dna',
kkonganti@17 100 clivalue: (params.sourmashgather_dna ? ' ' : '')
kkonganti@17 101 ],
kkonganti@17 102 'sourmashgather_nodna': [
kkonganti@17 103 clihelp: 'Do not choose DNA signature. ' +
kkonganti@17 104 "Default: ${params.sourmashgather_nodna}",
kkonganti@17 105 cliflag: '--no-dna',
kkonganti@17 106 clivalue: (params.sourmashgather_nodna ? ' ' : '')
kkonganti@17 107 ],
kkonganti@17 108 'sourmashgather_scaled': [
kkonganti@17 109 clihelp: 'Scaled value should be between 100 and 1e6. ' +
kkonganti@17 110 "Default: ${params.sourmashgather_scaled}",
kkonganti@17 111 cliflag: '--scaled',
kkonganti@17 112 clivalue: (params.sourmashgather_scaled ?: '')
kkonganti@17 113 ],
kkonganti@17 114 'sourmashgather_inc_pat': [
kkonganti@17 115 clihelp: 'Search only signatures that match this pattern in name, filename, or md5. ' +
kkonganti@17 116 "Default: ${params.sourmashgather_inc_pat}",
kkonganti@17 117 cliflag: '--include-db-pattern',
kkonganti@17 118 clivalue: (params.sourmashgather_inc_pat ?: '')
kkonganti@17 119 ],
kkonganti@17 120 'sourmashgather_exc_pat': [
kkonganti@17 121 clihelp: 'Search only signatures that do not match this pattern in name, filename, or md5. ' +
kkonganti@17 122 "Default: ${params.sourmashgather_exc_pat}",
kkonganti@17 123 cliflag: '--exclude-db-pattern',
kkonganti@17 124 clivalue: (params.sourmashgather_exc_pat ?: '')
kkonganti@17 125 ]
kkonganti@17 126 ]
kkonganti@17 127
kkonganti@17 128 toolspecs.each {
kkonganti@17 129 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@17 130 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@17 131 }
kkonganti@17 132
kkonganti@17 133 return tool
kkonganti@17 134 }