annotate 0.2.0/lib/help/sourmashgather.nf @ 11:a5f31c44f8c9

planemo upload
author kkonganti
date Mon, 15 Jul 2024 16:11:44 -0400
parents
children
rev   line source
kkonganti@11 1 // Help text for sourmash gather within CPIPES.mashsketch
kkonganti@11 2
kkonganti@11 3 def sourmashgatherHelp(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 'sourmashgather_run': [
kkonganti@11 12 clihelp: 'Run `sourmash gather` tool. Default: ' +
kkonganti@11 13 (params.sourmashgather_run ?: false),
kkonganti@11 14 cliflag: null,
kkonganti@11 15 clivalue: null
kkonganti@11 16 ],
kkonganti@11 17 'sourmashgather_n': [
kkonganti@11 18 clihelp: 'Number of results to report. ' +
kkonganti@11 19 'By default, will terminate at --sourmashgather_thr_bp value. ' +
kkonganti@11 20 "Default: ${params.sourmashgather_n}",
kkonganti@11 21 cliflag: '-n',
kkonganti@11 22 clivalue: (params.sourmashgather_n ?: '')
kkonganti@11 23 ],
kkonganti@11 24 'sourmashgather_thr_bp': [
kkonganti@11 25 clihelp: 'Reporting threshold (in bp) for estimated overlap with remaining query. ' +
kkonganti@11 26 "Default: ${params.sourmashgather_thr_bp}",
kkonganti@11 27 cliflag: '--threshold-bp',
kkonganti@11 28 clivalue: (params.sourmashgather_thr_bp ?: '')
kkonganti@11 29 ],
kkonganti@11 30 'sourmashgather_ani_ci': [
kkonganti@11 31 clihelp: 'Output confidence intervals for ANI estimates. ' +
kkonganti@11 32 "Default: ${params.sourmashgather_ani_ci}",
kkonganti@11 33 cliflag: '--estimate-ani-ci',
kkonganti@11 34 clivalue: (params.sourmashgather_ani_ci ? ' ' : '')
kkonganti@11 35 ],
kkonganti@11 36 'sourmashgather_k': [
kkonganti@11 37 clihelp: 'The k-mer size to select. ' +
kkonganti@11 38 "Default: ${params.sourmashgather_k}",
kkonganti@11 39 cliflag: '-k',
kkonganti@11 40 clivalue: (params.sourmashgather_k ?: '')
kkonganti@11 41 ],
kkonganti@11 42 'sourmashgather_dna': [
kkonganti@11 43 clihelp: 'Choose DNA signature. ' +
kkonganti@11 44 "Default: ${params.sourmashgather_dna}",
kkonganti@11 45 cliflag: '--dna',
kkonganti@11 46 clivalue: (params.sourmashgather_dna ? ' ' : '')
kkonganti@11 47 ],
kkonganti@11 48 'sourmashgather_rna': [
kkonganti@11 49 clihelp: 'Choose RNA signature. ' +
kkonganti@11 50 "Default: ${params.sourmashgather_rna}",
kkonganti@11 51 cliflag: '--rna',
kkonganti@11 52 clivalue: (params.sourmashgather_rna ? ' ' : '')
kkonganti@11 53 ],
kkonganti@11 54 'sourmashgather_nuc': [
kkonganti@11 55 clihelp: 'Choose Nucleotide signature. ' +
kkonganti@11 56 "Default: ${params.sourmashgather_nuc}",
kkonganti@11 57 cliflag: '--nucleotide',
kkonganti@11 58 clivalue: (params.sourmashgather_nuc ? ' ' : '')
kkonganti@11 59 ],
kkonganti@11 60 'sourmashgather_scaled': [
kkonganti@11 61 clihelp: 'Scaled value should be between 100 and 1e6. ' +
kkonganti@11 62 "Default: ${params.sourmashgather_scaled}",
kkonganti@11 63 cliflag: '--scaled',
kkonganti@11 64 clivalue: (params.sourmashgather_scaled ?: '')
kkonganti@11 65 ],
kkonganti@11 66 'sourmashgather_inc_pat': [
kkonganti@11 67 clihelp: 'Search only signatures that match this pattern in name, filename, or md5. ' +
kkonganti@11 68 "Default: ${params.sourmashgather_inc_pat}",
kkonganti@11 69 cliflag: '--include-db-pattern',
kkonganti@11 70 clivalue: (params.sourmashgather_inc_pat ?: '')
kkonganti@11 71 ],
kkonganti@11 72 'sourmashgather_exc_pat': [
kkonganti@11 73 clihelp: 'Search only signatures that do not match this pattern in name, filename, or md5. ' +
kkonganti@11 74 "Default: ${params.sourmashgather_exc_pat}",
kkonganti@11 75 cliflag: '--exclude-db-pattern',
kkonganti@11 76 clivalue: (params.sourmashgather_exc_pat ?: '')
kkonganti@11 77 ]
kkonganti@11 78 ]
kkonganti@11 79
kkonganti@11 80 toolspecs.each {
kkonganti@11 81 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@11 82 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@11 83 }
kkonganti@11 84
kkonganti@11 85 return tool
kkonganti@11 86 }