annotate 0.6.1/lib/help/megahit.nf @ 13:74baf1a6c3bd

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