Mercurial > repos > kkonganti > cfsan_cronology
annotate 0.2.0/lib/help/polypolish.nf @ 15:7c0407ebbdf3
planemo upload
author | kkonganti |
---|---|
date | Mon, 15 Jul 2024 17:55:16 -0400 |
parents | a5f31c44f8c9 |
children |
rev | line source |
---|---|
kkonganti@11 | 1 // Help text for `polypolish within CPIPES. |
kkonganti@11 | 2 |
kkonganti@11 | 3 def polypolishHelp(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 'polypolish_run': [ |
kkonganti@11 | 12 clihelp: 'Run polypolish tool. Default: ' + |
kkonganti@11 | 13 (params.polypolish_run ?: false), |
kkonganti@11 | 14 cliflag: null, |
kkonganti@11 | 15 clivalue: null |
kkonganti@11 | 16 ], |
kkonganti@11 | 17 'polypolish_d': [ |
kkonganti@11 | 18 clihelp: 'A base must occur at least this many times in the pileup to be considered valid. ' + |
kkonganti@11 | 19 "Default: ${params.polypolish_d}", |
kkonganti@11 | 20 cliflag: '-d', |
kkonganti@11 | 21 clivalue: (params.polypolish_d ?: '') |
kkonganti@11 | 22 ], |
kkonganti@11 | 23 'polypolish_i': [ |
kkonganti@11 | 24 clihelp: 'A base must make up less than this fraction of the read depth to be considered invalid. ' + |
kkonganti@11 | 25 "Default: ${params.polypolish_i}", |
kkonganti@11 | 26 cliflag: '-i', |
kkonganti@11 | 27 clivalue: (params.polypolish_i ?: '') |
kkonganti@11 | 28 ], |
kkonganti@11 | 29 'polypolish_m': [ |
kkonganti@11 | 30 clihelp: 'Ignore alignments with more than this many mismatches and indels. ' + |
kkonganti@11 | 31 "Default: ${params.polypolish_m}", |
kkonganti@11 | 32 cliflag: '-m', |
kkonganti@11 | 33 clivalue: (params.polypolish_m ?: '') |
kkonganti@11 | 34 ], |
kkonganti@11 | 35 'polypolish_v': [ |
kkonganti@11 | 36 clihelp: 'A base must make up at least this fraction of the read depth to be considered valid. ' + |
kkonganti@11 | 37 "Default: ${params.polypolish_v}", |
kkonganti@11 | 38 cliflag: '-v', |
kkonganti@11 | 39 clivalue: (params.polypolish_v ?: '') |
kkonganti@11 | 40 ] |
kkonganti@11 | 41 ] |
kkonganti@11 | 42 |
kkonganti@11 | 43 toolspecs.each { |
kkonganti@11 | 44 k, v -> tool.text['--' + k] = "${v.clihelp}" |
kkonganti@11 | 45 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ] |
kkonganti@11 | 46 } |
kkonganti@11 | 47 |
kkonganti@11 | 48 return tool |
kkonganti@11 | 49 } |