annotate 0.3.0/lib/help/megahit.nf @ 97:8d7f482c64de

"planemo upload"
author kkonganti
date Fri, 29 Jul 2022 11:11:07 -0400
parents 295c2597a475
children
rev   line source
kkonganti@92 1 // Help text for megahit within CPIPES.
kkonganti@92 2
kkonganti@92 3 def megahitHelp(params) {
kkonganti@92 4
kkonganti@92 5 Map tool = [:]
kkonganti@92 6 Map toolspecs = [:]
kkonganti@92 7 tool.text = [:]
kkonganti@92 8 tool.helpparams = [:]
kkonganti@92 9
kkonganti@92 10 toolspecs = [
kkonganti@97 11 'megahit_run': [
kkonganti@97 12 clihelp: 'Run MEGAHIT assembler. Default: ' +
kkonganti@97 13 (params.megahit_run ?: false),
kkonganti@97 14 cliflag: null,
kkonganti@97 15 clivalue: null
kkonganti@97 16 ],
kkonganti@92 17 'megahit_min_count': [
kkonganti@92 18 clihelp: '<int>. Minimum multiplicity for filtering (k_min+1)-mers. ' +
kkonganti@92 19 "Defaut: ${params.megahit_min_count}",
kkonganti@92 20 cliflag: '--min-count',
kkonganti@92 21 clivalue: (params.megahit_min_count ?: '')
kkonganti@92 22 ],
kkonganti@92 23 'megahit_k_list': [
kkonganti@92 24 clihelp: 'Comma-separated list of kmer size. All values must be odd, in ' +
kkonganti@92 25 "the range 15-255, increment should be <= 28. Ex: '21,29,39,59,79,99,119,141'. " +
kkonganti@92 26 "Default: ${params.megahit_k_list}",
kkonganti@92 27 cliflag: '--k-list',
kkonganti@92 28 clivalue: (params.megahit_k_list ?: '')
kkonganti@92 29 ],
kkonganti@92 30 'megahit_no_mercy': [
kkonganti@92 31 clihelp: 'Do not add mercy k-mers. ' +
kkonganti@92 32 "Default: ${params.megahit_no_mercy}",
kkonganti@92 33 cliflag: '--no-mercy',
kkonganti@92 34 clivalue: (params.megahit_no_mercy ? ' ' : '')
kkonganti@92 35 ],
kkonganti@92 36 'megahit_bubble_level': [
kkonganti@92 37 clihelp: '<int>. Intensity of bubble merging (0-2), 0 to disable. ' +
kkonganti@92 38 "Default: ${params.megahit_bubble_level}",
kkonganti@92 39 cliflag: '--bubble-level',
kkonganti@92 40 clivalue: (params.megahit_bubble_level ?: '')
kkonganti@92 41 ],
kkonganti@92 42 'megahit_merge_level': [
kkonganti@92 43 clihelp: '<l,s>. Merge complex bubbles of length <= l*kmer_size and ' +
kkonganti@92 44 "similarity >= s. Default: ${params.megahit_merge_level}",
kkonganti@92 45 cliflag: '--merge-level',
kkonganti@92 46 clivalue: (params.megahit_merge_level ?: '')
kkonganti@92 47 ],
kkonganti@92 48 'megahit_prune_level': [
kkonganti@92 49 clihelp: '<int>. Strength of low depth pruning (0-3). ' +
kkonganti@92 50 "Default: ${params.megahit_prune_level}",
kkonganti@92 51 cliflag: '--prune-level',
kkonganti@92 52 clivalue: (params.megahit_prune_level ?: '')
kkonganti@92 53 ],
kkonganti@92 54 'megahit_prune_depth': [
kkonganti@92 55 clihelp: '<int>. Remove unitigs with avg k-mer depth less than this value. ' +
kkonganti@92 56 "Default: ${params.megahit_prune_depth}",
kkonganti@92 57 cliflag: '--prune-depth',
kkonganti@92 58 clivalue: (params.megahit_prune_depth ?: '')
kkonganti@92 59 ],
kkonganti@92 60 'megahit_low_local_ratio': [
kkonganti@92 61 clihelp: '<float>. Ratio threshold to define low local coverage contigs. ' +
kkonganti@92 62 "Default: ${params.megahit_low_local_ratio}",
kkonganti@92 63 cliflag: '--low-local-ratio',
kkonganti@92 64 clivalue: (params.megahit_low_local_ratio ?: '')
kkonganti@92 65 ],
kkonganti@92 66 'megahit_max_tip_len': [
kkonganti@92 67 clihelp: '<int>. remove tips less than this value [<int> * k]. ' +
kkonganti@92 68 "Default: ${params.megahit_max_tip_len}",
kkonganti@92 69 cliflag: '--max-tip-len',
kkonganti@92 70 clivalue: (params.megahit_max_tip_len ?: '')
kkonganti@92 71 ],
kkonganti@92 72 'megahit_no_local': [
kkonganti@92 73 clihelp: 'Disable local assembly. ' +
kkonganti@92 74 "Default: ${params.megahit_no_local}",
kkonganti@92 75 cliflag: '--no-local',
kkonganti@92 76 clivalue: (params.megahit_no_local ? ' ' : '')
kkonganti@92 77 ],
kkonganti@92 78 'megahit_kmin_1pass': [
kkonganti@92 79 clihelp: 'Use 1pass mode to build SdBG of k_min. ' +
kkonganti@92 80 "Default: ${params.megahit_kmin_1pass}",
kkonganti@92 81 cliflag: '--kmin-1pass',
kkonganti@92 82 clivalue: (params.megahit_kmin_1pass ? ' ' : '')
kkonganti@92 83 ],
kkonganti@92 84 'megahit_preset': [
kkonganti@92 85 clihelp: '<str>. Override a group of parameters. Valid values are '+
kkonganti@92 86 "meta-sensitive which enforces '--min-count 1 --k-list 21,29,39,49,...,129,141', " +
kkonganti@92 87 'meta-large (large & complex metagenomes, like soil) which enforces ' +
kkonganti@92 88 "'--k-min 27 --k-max 127 --k-step 10'. " +
kkonganti@92 89 "Default: ${params.megahit_preset}",
kkonganti@92 90 cliflag: '--preset',
kkonganti@92 91 clivalue: (params.megahit_preset ?: '')
kkonganti@92 92 ],
kkonganti@92 93 'megahit_mem_flag': [
kkonganti@92 94 clihelp: '<int>. SdBG builder memory mode. 0: minimum; 1: moderate; 2: use all memory specified. ' +
kkonganti@92 95 "Default: ${params.megahit_mem_flag}",
kkonganti@92 96 cliflag: '--mem-flag',
kkonganti@92 97 clivalue: (params.megahit_mem_flag ?: '')
kkonganti@92 98 ],
kkonganti@92 99 'megahit_min_contig_len': [
kkonganti@92 100 clihelp: '<int>. Minimum length of contigs to output. ' +
kkonganti@92 101 "Default: ${params.megahit_min_contig_len}",
kkonganti@92 102 cliflag: '--use-gpu',
kkonganti@92 103 clivalue: (params.megahit_min_contig_len ?: '')
kkonganti@92 104 ]
kkonganti@92 105 ]
kkonganti@92 106
kkonganti@92 107 toolspecs.each {
kkonganti@92 108 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@92 109 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@92 110 }
kkonganti@92 111
kkonganti@92 112 return tool
kkonganti@92 113 }