annotate 0.5.0/lib/help/seqkitrmdup.nf @ 0:97cd2f532efe

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