annotate 0.3.0/lib/help/megahit.nf @ 92:295c2597a475

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