Mercurial > repos > kkonganti > cfsan_centriflaken
annotate 0.4.0/lib/help/seqkitrmdup.nf @ 101:ce6d9548fe89
"planemo upload"
author | kkonganti |
---|---|
date | Thu, 04 Aug 2022 10:45:55 -0400 |
parents | |
children |
rev | line source |
---|---|
kkonganti@101 | 1 // Help text for seqkit rmdup within CPIPES. |
kkonganti@101 | 2 |
kkonganti@101 | 3 def seqkitrmdupHelp(params) { |
kkonganti@101 | 4 |
kkonganti@101 | 5 Map tool = [:] |
kkonganti@101 | 6 Map toolspecs = [:] |
kkonganti@101 | 7 tool.text = [:] |
kkonganti@101 | 8 tool.helpparams = [:] |
kkonganti@101 | 9 |
kkonganti@101 | 10 toolspecs = [ |
kkonganti@101 | 11 'seqkit_rmdup_run': [ |
kkonganti@101 | 12 clihelp: 'Remove duplicate sequences using seqkit rmdup. Default: ' + |
kkonganti@101 | 13 (params.seqkit_rmdup_run ?: false), |
kkonganti@101 | 14 cliflag: null, |
kkonganti@101 | 15 clivalue: null |
kkonganti@101 | 16 ], |
kkonganti@101 | 17 'seqkit_rmdup_n': [ |
kkonganti@101 | 18 clihelp: 'Match and remove duplicate sequences by full name instead of just ID. ' + |
kkonganti@101 | 19 "Defaut: ${params.seqkit_rmdup_n}", |
kkonganti@101 | 20 cliflag: '-n', |
kkonganti@101 | 21 clivalue: (params.seqkit_rmdup_n ? ' ' : '') |
kkonganti@101 | 22 ], |
kkonganti@101 | 23 'seqkit_rmdup_s': [ |
kkonganti@101 | 24 clihelp: 'Match and remove duplicate sequences by sequence content. ' + |
kkonganti@101 | 25 "Defaut: ${params.seqkit_rmdup_s}", |
kkonganti@101 | 26 cliflag: '-s', |
kkonganti@101 | 27 clivalue: (params.seqkit_rmdup_s ? ' ' : '') |
kkonganti@101 | 28 ], |
kkonganti@101 | 29 'seqkit_rmdup_d': [ |
kkonganti@101 | 30 clihelp: 'Save the duplicated sequences to a file. ' + |
kkonganti@101 | 31 "Defaut: ${params.seqkit_rmdup_d}", |
kkonganti@101 | 32 cliflag: null, |
kkonganti@101 | 33 clivalue: null |
kkonganti@101 | 34 ], |
kkonganti@101 | 35 'seqkit_rmdup_D': [ |
kkonganti@101 | 36 clihelp: 'Save the number and list of duplicated sequences to a file. ' + |
kkonganti@101 | 37 "Defaut: ${params.seqkit_rmdup_D}", |
kkonganti@101 | 38 cliflag: null, |
kkonganti@101 | 39 clivalue: null |
kkonganti@101 | 40 ], |
kkonganti@101 | 41 'seqkit_rmdup_i': [ |
kkonganti@101 | 42 clihelp: 'Ignore case while using seqkit rmdup. ' + |
kkonganti@101 | 43 "Defaut: ${params.seqkit_rmdup_i}", |
kkonganti@101 | 44 cliflag: '-i', |
kkonganti@101 | 45 clivalue: (params.seqkit_rmdup_i ? ' ' : '') |
kkonganti@101 | 46 ], |
kkonganti@101 | 47 'seqkit_rmdup_P': [ |
kkonganti@101 | 48 clihelp: "Only consider positive strand (i.e. 5') when comparing by sequence content. " + |
kkonganti@101 | 49 "Defaut: ${params.seqkit_rmdup_P}", |
kkonganti@101 | 50 cliflag: '-P', |
kkonganti@101 | 51 clivalue: (params.seqkit_rmdup_P ? ' ' : '') |
kkonganti@101 | 52 ] |
kkonganti@101 | 53 ] |
kkonganti@101 | 54 |
kkonganti@101 | 55 toolspecs.each { |
kkonganti@101 | 56 k, v -> tool.text['--' + k] = "${v.clihelp}" |
kkonganti@101 | 57 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ] |
kkonganti@101 | 58 } |
kkonganti@101 | 59 |
kkonganti@101 | 60 return tool |
kkonganti@101 | 61 } |