annotate 0.6.1/lib/help/bbmerge.nf @ 15:1972677994a6

"planemo upload"
author kkonganti
date Thu, 07 Sep 2023 10:27:12 -0400
parents 749faef1caa9
children
rev   line source
kkonganti@11 1 // Help text for bbmerge within CPIPES.
kkonganti@11 2
kkonganti@11 3 def bbmergeHelp(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 'bbmerge_run': [
kkonganti@11 12 clihelp: 'Run BBMerge tool. Default: ' +
kkonganti@11 13 (params.bbmerge_run ?: false),
kkonganti@11 14 cliflag: null,
kkonganti@11 15 clivalue: null
kkonganti@11 16 ],
kkonganti@11 17 'bbmerge_reads': [
kkonganti@11 18 clihelp: 'Quit after this many read pairs (-1 means all) ' +
kkonganti@11 19 "Default: ${params.bbmerge_reads}",
kkonganti@11 20 cliflag: 'reads=',
kkonganti@11 21 clivalue: (params.bbmerge_reads ?: '')
kkonganti@11 22 ],
kkonganti@11 23 'bbmerge_adapters': [
kkonganti@11 24 clihelp: 'Absolute UNIX path pointing to the adapters file in ' +
kkonganti@11 25 "FASTA format. Default: ${params.bbmerge_adapters}",
kkonganti@11 26 cliflag: 'adapters=',
kkonganti@11 27 clivalue: (params.bbmerge_adapters ?: '')
kkonganti@11 28 ],
kkonganti@11 29 'bbmerge_ziplevel': [
kkonganti@11 30 clihelp: 'Set to 1 (lowest) through 9 (max) to change compression ' +
kkonganti@11 31 "level; lower compression is faster. Default: ${params.bbmerge_ziplevel}",
kkonganti@11 32 cliflag: 'ziplevel=',
kkonganti@11 33 clivalue: (params.bbmerge_ziplevel ?: '')
kkonganti@11 34 ],
kkonganti@11 35 'bbmerge_ordered': [
kkonganti@11 36 clihelp: 'Output reads in the same order as input. ' +
kkonganti@11 37 "Default: ${params.bbmerge_ordered}",
kkonganti@11 38 cliflag: 'ordered=',
kkonganti@11 39 clivalue: (params.bbmerge_ordered ?: '')
kkonganti@11 40 ],
kkonganti@11 41 'bbmerge_qtrim': [
kkonganti@11 42 clihelp: 'Trim read ends to remove bases with quality below --bbmerge_minq. ' +
kkonganti@11 43 'Trims BEFORE merging. Values: t (trim both ends), ' +
kkonganti@11 44 'f (neither end), r (right end only), l (left end only). ' +
kkonganti@11 45 "Default: ${params.bbmerge_qtrim}",
kkonganti@11 46 cliflag: 'qtrim=',
kkonganti@11 47 clivalue: (params.bbmerge_qtrim ?: '')
kkonganti@11 48 ],
kkonganti@11 49 'bbmerge_qtrim2': [
kkonganti@11 50 clihelp: 'May be specified instead of --bbmerge_qtrim to perform trimming ' +
kkonganti@11 51 'only if merging is unsuccesful. then retry merging. ' +
kkonganti@11 52 "Default: ${params.bbmerge_qtrim2}",
kkonganti@11 53 cliflag: 'qtrim2=',
kkonganti@11 54 clivalue: (params.bbmerge_qtrim2 ?: '')
kkonganti@11 55 ],
kkonganti@11 56 'bbmerge_trimq': [
kkonganti@11 57 clihelp: 'Trim quality threshold. This may be comma-delimited list (ascending) ' +
kkonganti@11 58 "to try multiple values. Default: ${params.bbmerge_trimq}",
kkonganti@11 59 cliflag: 'trimq=',
kkonganti@11 60 clivalue: (params.bbmerge_trimq ?: '')
kkonganti@11 61 ],
kkonganti@11 62 'bbmerge_minlength': [
kkonganti@11 63 clihelp: '(ml) Reads shorter than this after trimming, but before ' +
kkonganti@11 64 'merging, will be discarded. Pairs will be discarded only' +
kkonganti@11 65 "if both are shorter. Default: ${params.bbmerge_minlength}",
kkonganti@11 66 cliflag: 'minlength=',
kkonganti@11 67 clivalue: (params.bbmerge_minlength ?: '')
kkonganti@11 68 ],
kkonganti@11 69 'bbmerge_tbo': [
kkonganti@11 70 clihelp: '(trimbyoverlap). Trim overlapping reads to remove right ' +
kkonganti@11 71 "most (3') non-overlaping portion instead of joining " +
kkonganti@11 72 "Default: ${params.bbmerge_tbo}",
kkonganti@11 73 cliflag: 'tbo=',
kkonganti@11 74 clivalue: (params.bbmerge_tbo ?: '')
kkonganti@11 75 ],
kkonganti@11 76 'bbmerge_minavgquality': [
kkonganti@11 77 clihelp: '(maq). Reads with average quality below this after trimming will ' +
kkonganti@11 78 "not be attempted to merge. Default: ${params.bbmerge_minavgquality}",
kkonganti@11 79 cliflag: 'minavgquality=',
kkonganti@11 80 clivalue: (params.bbmerge_minavgquality ?: '')
kkonganti@11 81 ],
kkonganti@11 82 'bbmerge_trimpolya': [
kkonganti@11 83 clihelp: 'Trim trailing poly-A tail from adapter output. Only affects ' +
kkonganti@11 84 'outadapter. This also trims poly-A followed by poly-G, which ' +
kkonganti@11 85 "occurs on NextSeq. Default: ${params.bbmerge_trimpolya}",
kkonganti@11 86 cliflag: 'trimpolya=',
kkonganti@11 87 clivalue: (params.bbmerge_trimpolya ?: '')
kkonganti@11 88 ],
kkonganti@11 89 'bbmerge_pfilter': [
kkonganti@11 90 clihelp: 'Ban improbable overlaps. Higher is more strict. 0 will ' +
kkonganti@11 91 'disable the filter; 1 will allow only perfect overlaps. ' +
kkonganti@11 92 "Default: ${params.bbmerge_pfilter}",
kkonganti@11 93 cliflag: 'pfilter=',
kkonganti@11 94 clivalue: (params.bbmerge_pfilter ?: '')
kkonganti@11 95 ],
kkonganti@11 96 'bbmerge_ouq': [
kkonganti@11 97 clihelp: 'Calculate best overlap using quality values. ' +
kkonganti@11 98 "Default: ${params.bbmerge_ouq}",
kkonganti@11 99 cliflag: 'ouq',
kkonganti@11 100 clivalue: (params.bbmerge_ouq ?: '')
kkonganti@11 101 ],
kkonganti@11 102 'bbmerge_owq': [
kkonganti@11 103 clihelp: 'Calculate best overlap without using quality values. ' +
kkonganti@11 104 "Default: ${params.bbmerge_owq}",
kkonganti@11 105 cliflag: 'owq=',
kkonganti@11 106 clivalue: (params.bbmerge_owq ?: '')
kkonganti@11 107 ],
kkonganti@11 108 'bbmerge_strict': [
kkonganti@11 109 clihelp: 'Decrease false positive rate and merging rate. ' +
kkonganti@11 110 "Default: ${params.bbmerge_strict}",
kkonganti@11 111 cliflag: 'strict=',
kkonganti@11 112 clivalue: (params.bbmerge_strict ?: '')
kkonganti@11 113 ],
kkonganti@11 114 'bbmerge_verystrict': [
kkonganti@11 115 clihelp: 'Greatly decrease false positive rate and merging rate. ' +
kkonganti@11 116 "Default: ${params.bbmerge_verystrict}",
kkonganti@11 117 cliflag: 'verystrict=',
kkonganti@11 118 clivalue: (params.bbmerge_verystrict ?: '')
kkonganti@11 119 ],
kkonganti@11 120 'bbmerge_ultrastrict': [
kkonganti@11 121 clihelp: 'Decrease false positive rate and merging rate even more. ' +
kkonganti@11 122 "Default: ${params.bbmerge_ultrastrict}",
kkonganti@11 123 cliflag: 'ultrastrict=',
kkonganti@11 124 clivalue: (params.bbmerge_ultrastrict ?: '')
kkonganti@11 125 ],
kkonganti@11 126 'bbmerge_maxstrict': [
kkonganti@11 127 clihelp: 'Maxiamally decrease false positive rate and merging rate. ' +
kkonganti@11 128 "Default: ${params.bbmerge_maxstrict}",
kkonganti@11 129 cliflag: 'maxstrict=',
kkonganti@11 130 clivalue: (params.bbmerge_maxstrict ?: '')
kkonganti@11 131 ],
kkonganti@11 132 'bbmerge_loose': [
kkonganti@11 133 clihelp: 'Increase false positive rate and merging rate. ' +
kkonganti@11 134 "Default: ${params.bbmerge_loose}",
kkonganti@11 135 cliflag: 'loose=',
kkonganti@11 136 clivalue: (params.bbmerge_loose ?: '')
kkonganti@11 137 ],
kkonganti@11 138 'bbmerge_veryloose': [
kkonganti@11 139 clihelp: 'Greatly increase false positive rate and merging rate. ' +
kkonganti@11 140 "Default: ${params.bbmerge_veryloose}",
kkonganti@11 141 cliflag: 'veryloose=',
kkonganti@11 142 clivalue: (params.bbmerge_veryloose ?: '')
kkonganti@11 143 ],
kkonganti@11 144 'bbmerge_ultraloose': [
kkonganti@11 145 clihelp: 'Increase false positive rate and merging rate even more. ' +
kkonganti@11 146 "Default: ${params.bbmerge_ultraloose}",
kkonganti@11 147 cliflag: 'ultraloose=',
kkonganti@11 148 clivalue: (params.bbmerge_ultraloose ?: '')
kkonganti@11 149 ],
kkonganti@11 150 'bbmerge_maxloose': [
kkonganti@11 151 clihelp: 'Maximally increase false positive rate and merging rate. ' +
kkonganti@11 152 "Default: ${params.bbmerge_maxloose}",
kkonganti@11 153 cliflag: 'maxloose=',
kkonganti@11 154 clivalue: (params.bbmerge_maxloose ?: '')
kkonganti@11 155 ],
kkonganti@11 156 'bbmerge_fast': [
kkonganti@11 157 clihelp: 'Fastest possible preset. ' +
kkonganti@11 158 "Default: ${params.bbmerge_fast}",
kkonganti@11 159 cliflag: 'fast=',
kkonganti@11 160 clivalue: (params.bbmerge_fast ?: '')
kkonganti@11 161 ],
kkonganti@11 162 'bbmerge_k': [
kkonganti@11 163 clihelp: 'Kmer length. 31 (or less) is fastest and uses the least ' +
kkonganti@11 164 'memory, but higher values may be more accurate. ' +
kkonganti@11 165 '60 tends to work well for 150bp reads. ' +
kkonganti@11 166 "Default: ${params.bbmerge_k}",
kkonganti@11 167 cliflag: 'k=',
kkonganti@11 168 clivalue: (params.bbmerge_k ?: '')
kkonganti@11 169 ],
kkonganti@11 170 'bbmerge_prealloc': [
kkonganti@11 171 clihelp: 'Pre-allocate memory rather than dynamically growing. ' +
kkonganti@11 172 'Faster and more memory-efficient for large datasets. ' +
kkonganti@11 173 'A float fraction (0-1) may be specified, default 1. ' +
kkonganti@11 174 "Default: ${params.bbmerge_prealloc}",
kkonganti@11 175 cliflag: 'prealloc=',
kkonganti@11 176 clivalue: (params.bbmerge_prealloc ?: '')
kkonganti@11 177 ]
kkonganti@11 178 ]
kkonganti@11 179
kkonganti@11 180 toolspecs.each {
kkonganti@11 181 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@11 182 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@11 183 }
kkonganti@11 184
kkonganti@11 185 return tool
kkonganti@11 186 }