annotate 0.5.0/lib/help/seqkitrmdup.nf @ 1:365849f031fd

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