Mercurial > repos > kkonganti > cfsan_centriflaken
annotate 0.4.2/lib/help/centrifuge.nf @ 105:52045ea4679d
"planemo upload"
author | kkonganti |
---|---|
date | Thu, 27 Jun 2024 14:17:26 -0400 |
parents | |
children |
rev | line source |
---|---|
kkonganti@105 | 1 // Help text for centrifuge within CPIPES. |
kkonganti@105 | 2 |
kkonganti@105 | 3 def centrifugeHelp(params) { |
kkonganti@105 | 4 |
kkonganti@105 | 5 Map tool = [:] |
kkonganti@105 | 6 Map toolspecs = [:] |
kkonganti@105 | 7 tool.text = [:] |
kkonganti@105 | 8 tool.helpparams = [:] |
kkonganti@105 | 9 |
kkonganti@105 | 10 toolspecs = [ |
kkonganti@105 | 11 'centrifuge_x': [ |
kkonganti@105 | 12 clihelp: "Absolute path to centrifuge database. Default: ${params.centrifuge_x}", |
kkonganti@105 | 13 cliflag: '-x', |
kkonganti@105 | 14 clivalue: null |
kkonganti@105 | 15 ], |
kkonganti@105 | 16 'centrifuge_save_unaligned': [ |
kkonganti@105 | 17 clihelp: 'Save SINGLE-END reads that did not align. For PAIRED-END' + |
kkonganti@105 | 18 " reads, save read pairs that did not align concordantly. Default: ${params.centrifuge_save_unaligned}", |
kkonganti@105 | 19 cliflag: null, // Handled in modules logic. |
kkonganti@105 | 20 clivalue: null |
kkonganti@105 | 21 ], |
kkonganti@105 | 22 'centrifuge_save_aligned': [ |
kkonganti@105 | 23 clihelp: 'Save SINGLE-END reads that aligned. For PAIRED-END' + |
kkonganti@105 | 24 " reads, save read pairs that aligned concordantly. Default: ${params.centrifuge_save_aligned}", |
kkonganti@105 | 25 cliflag: null, // Handled in modules logic. |
kkonganti@105 | 26 clivalue: null |
kkonganti@105 | 27 ], |
kkonganti@105 | 28 'centrifuge_out_fmt_sam': [ |
kkonganti@105 | 29 clihelp: "Centrifuge output should be in SAM. Default: ${params.centrifuge_save_aligned}", |
kkonganti@105 | 30 cliflag: null, // Handled in modules logic. |
kkonganti@105 | 31 clivalue: null |
kkonganti@105 | 32 ], |
kkonganti@105 | 33 'centrifuge_extract_bug': [ |
kkonganti@105 | 34 clihelp: "Extract this bug from centrifuge results." + |
kkonganti@105 | 35 " Default: ${params.centrifuge_extract_bug}", |
kkonganti@105 | 36 cliflag: null, // Handled in modules logic. |
kkonganti@105 | 37 clivalue: null, |
kkonganti@105 | 38 ], |
kkonganti@105 | 39 'centrifuge_ignore_quals': [ |
kkonganti@105 | 40 clihelp: 'Treat all quality values as 30 on Phred scale. ' + |
kkonganti@105 | 41 "Default: ${params.centrifuge_ignore_quals}", |
kkonganti@105 | 42 cliflag: '--ignore-quals', |
kkonganti@105 | 43 clivalue: (params.centrifuge_ignore_quals ? ' ' : '') |
kkonganti@105 | 44 ] |
kkonganti@105 | 45 ] |
kkonganti@105 | 46 |
kkonganti@105 | 47 toolspecs.each { |
kkonganti@105 | 48 k, v -> tool.text['--' + k] = "${v.clihelp}" |
kkonganti@105 | 49 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ] |
kkonganti@105 | 50 } |
kkonganti@105 | 51 |
kkonganti@105 | 52 return tool |
kkonganti@105 | 53 } |
kkonganti@105 | 54 |