annotate 0.7.0/lib/help/seqkitrmdup.nf @ 21:4ce0e079377d tip

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