annotate 0.2.0/lib/help/quast.nf @ 18:a72c172df773 tip

planemo upload
author kkonganti
date Mon, 15 Jul 2024 21:40:42 -0400
parents a5f31c44f8c9
children
rev   line source
kkonganti@11 1 // Help text for quast within CPIPES.
kkonganti@11 2
kkonganti@11 3 def quastHelp(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 'quast_run': [
kkonganti@11 12 clihelp: 'Run quast tool. Default: ' +
kkonganti@11 13 (params.quast_run ?: false),
kkonganti@11 14 cliflag: null,
kkonganti@11 15 clivalue: null
kkonganti@11 16 ],
kkonganti@11 17 'quast_min_contig': [
kkonganti@11 18 clihelp: 'Lower threshold for contig length. ' +
kkonganti@11 19 "Default: ${params.quast_min_contig}",
kkonganti@11 20 cliflag: '-m',
kkonganti@11 21 clivalue: (params.quast_min_contig ?: '')
kkonganti@11 22 ],
kkonganti@11 23 'quast_split_scaffolds': [
kkonganti@11 24 clihelp: "Split assemblies by continuous fragments of N's" +
kkonganti@11 25 'and add such "contigs" to the comparison' +
kkonganti@11 26 "Default: ${params.quast_split_scaffolds}",
kkonganti@11 27 cliflag: '-s',
kkonganti@11 28 clivalue: (params.quast_split_scaffolds ? ' ' : '')
kkonganti@11 29 ],
kkonganti@11 30 'quast_euk': [
kkonganti@11 31 clihelp: 'Genome is eukaryotic (primarily affects gene prediction). ' +
kkonganti@11 32 "Default: ${params.quast_euk}",
kkonganti@11 33 cliflag: '-e',
kkonganti@11 34 clivalue: (params.quast_euk ? ' ' : '')
kkonganti@11 35 ],
kkonganti@11 36 'quast_fungal': [
kkonganti@11 37 clihelp: 'Genome is fungal (primarily affects gene prediction). ' +
kkonganti@11 38 "Default: ${params.quast_fungal}",
kkonganti@11 39 cliflag: '--fungal',
kkonganti@11 40 clivalue: (params.quast_fungal ? ' ' : '')
kkonganti@11 41 ],
kkonganti@11 42 'quast_large': [
kkonganti@11 43 clihelp: 'Use optimal parameters for evaluation of large genomes' +
kkonganti@11 44 "In particular, imposes '-e -m 3000 -i 500 -x 7000'." +
kkonganti@11 45 "Default: ${params.quast_large}",
kkonganti@11 46 cliflag: '--large',
kkonganti@11 47 clivalue: (params.quast_large ? ' ' : '')
kkonganti@11 48 ],
kkonganti@11 49 'quast_k': [
kkonganti@11 50 clihelp: 'Compute k-mer-based quality metrics (recommended for large genomes). ' +
kkonganti@11 51 "Default: ${params.quast_k}",
kkonganti@11 52 cliflag: '-k',
kkonganti@11 53 clivalue: (params.quast_k ? ' ' : '')
kkonganti@11 54 ],
kkonganti@11 55 'quast_kmer_size': [
kkonganti@11 56 clihelp: 'Size of k used in --quast_k. ' +
kkonganti@11 57 "Default: ${params.quast_kmer_size}",
kkonganti@11 58 cliflag: '--k-mer-size',
kkonganti@11 59 clivalue: (params.quast_kmer_size ?: 101)
kkonganti@11 60 ],
kkonganti@11 61 'quast_circos': [
kkonganti@11 62 clihelp: 'Draw circos plot. ' +
kkonganti@11 63 "Default: ${params.quast_circos}",
kkonganti@11 64 cliflag: '--circos',
kkonganti@11 65 clivalue: (params.quast_circos ? ' ' : '')
kkonganti@11 66 ],
kkonganti@11 67 'quast_glimmer': [
kkonganti@11 68 clihelp: 'Use GlimmerHMM for gene prediction. ' +
kkonganti@11 69 "Default: ${params.quast_glimmer}",
kkonganti@11 70 cliflag: '--glimmer',
kkonganti@11 71 clivalue: (params.quast_glimmer ? ' ' : '')
kkonganti@11 72 ],
kkonganti@11 73 'quast_gene_thr': [
kkonganti@11 74 clihelp: 'Comma-separated list of threshold lengths of genes to ' +
kkonganti@11 75 'search with Gene Finding module. ' +
kkonganti@11 76 "Default: ${params.quast_gene_thr}",
kkonganti@11 77 cliflag: '--gene-thresholds',
kkonganti@11 78 clivalue: (params.quast_gene_thr ?: '')
kkonganti@11 79 ],
kkonganti@11 80 'quast_rna_finding': [
kkonganti@11 81 clihelp: 'Predict ribosomal RNA genes using Barrnap. ' +
kkonganti@11 82 "Default: ${params.quast_rna_finding}",
kkonganti@11 83 cliflag: '--rna-finding',
kkonganti@11 84 clivalue: (params.quast_rna_finding ? ' ' : '')
kkonganti@11 85 ],
kkonganti@11 86 'quast_ref_size': [
kkonganti@11 87 clihelp: 'Estimated reference size in-case the reference genome is not supplied. ' +
kkonganti@11 88 "Default: ${params.quast_ref_size}",
kkonganti@11 89 cliflag: '--est-ref-size',
kkonganti@11 90 clivalue: (params.quast_ref_size ?: '')
kkonganti@11 91 ],
kkonganti@11 92 'quast_ctg_thr': [
kkonganti@11 93 clihelp: 'Comma-separated list of contig length thresholds. ' +
kkonganti@11 94 "Default: ${params.quast_ctg_thr}",
kkonganti@11 95 cliflag: '--contig-thresholds',
kkonganti@11 96 clivalue: (params.quast_ctg_thr ?: '')
kkonganti@11 97 ],
kkonganti@11 98 'quast_x_for_nx': [
kkonganti@11 99 clihelp: "Value of 'x' for Nx, Lx, etc metrics reported in addition to N50, L50, etc. " +
kkonganti@11 100 "Default: ${params.quast_x_for_nx}",
kkonganti@11 101 cliflag: '--x-for-Nx',
kkonganti@11 102 clivalue: (params.quast_x_for_nx ?: '')
kkonganti@11 103 ],
kkonganti@11 104 'quast_use_all_alns': [
kkonganti@11 105 clihelp: 'Compute genome fraction, # genes, # operons in QUAST v1.* style. ' +
kkonganti@11 106 "By default, QUAST filters Minimap's alignments to keep only best ones. " +
kkonganti@11 107 "Default: ${params.quast_glimmer}",
kkonganti@11 108 cliflag: '--use-all-alignments',
kkonganti@11 109 clivalue: (params.quast_use_all_alns ? ' ' : '')
kkonganti@11 110 ],
kkonganti@11 111 'quast_min_alignment': [
kkonganti@11 112 clihelp: 'The minimum alignment length. ' +
kkonganti@11 113 "Default: ${params.quast_min_alignment}",
kkonganti@11 114 cliflag: '-i',
kkonganti@11 115 clivalue: (params.quast_min_alignment ?: '')
kkonganti@11 116 ],
kkonganti@11 117 'quast_min_identity': [
kkonganti@11 118 clihelp: 'The minimum alignment identity (80.0, 100.0). ' +
kkonganti@11 119 "Default: ${params.quast_min_identity}",
kkonganti@11 120 cliflag: '--min-identity',
kkonganti@11 121 clivalue: (params.quast_min_identity ?: '')
kkonganti@11 122 ],
kkonganti@11 123 'quast_ambig_usage': [
kkonganti@11 124 clihelp: 'Use none, one, or all alignments of a contig when all of them. ' +
kkonganti@11 125 'are almost equally good (see --quast_ambig_score). ' +
kkonganti@11 126 "Default: ${params.quast_ambig_usage}",
kkonganti@11 127 cliflag: '-a',
kkonganti@11 128 clivalue: (params.quast_ambig_usage ?: '')
kkonganti@11 129 ],
kkonganti@11 130 'quast_ambig_score': [
kkonganti@11 131 clihelp: 'Score S for defining equally good alignments of a single contig. ' +
kkonganti@11 132 'All alignments are sorted by decreasing LEN * IDY% value. ' +
kkonganti@11 133 'All alignments with LEN * IDY% < S * best(LEN * IDY%) are ' +
kkonganti@11 134 'discarded. S should be between 0.8 and 1.0. ' +
kkonganti@11 135 "Default: ${params.quast_ambig_score}",
kkonganti@11 136 cliflag: '--ambiguity-score',
kkonganti@11 137 clivalue: (params.quast_ambig_score ?: '')
kkonganti@11 138 ],
kkonganti@11 139 'quast_strict_na': [
kkonganti@11 140 clihelp: 'Break contigs in any misassembly event when compute NAx and NGAx. '+
kkonganti@11 141 'By default, QUAST breaks contigs only by extensive misassemblies (not local ones). ' +
kkonganti@11 142 "Default: ${params.quast_strict_na}",
kkonganti@11 143 cliflag: '--strict-NA',
kkonganti@11 144 clivalue: (params.quast_strict_na ?: '')
kkonganti@11 145 ],
kkonganti@11 146 'quast_x': [
kkonganti@11 147 clihelp: 'Lower threshold for extensive misassembly size. All relocations with inconsistency ' +
kkonganti@11 148 'less than extensive-mis-size are counted as local misassemblies. ' +
kkonganti@11 149 "Default: ${params.quast_x}",
kkonganti@11 150 cliflag: '-x',
kkonganti@11 151 clivalue: (params.quast_x ?: '')
kkonganti@11 152 ],
kkonganti@11 153 'quast_local_mis_size': [
kkonganti@11 154 clihelp: 'Lower threshold on local misassembly size. Local misassemblies with inconsistency ' +
kkonganti@11 155 'less than local-mis-size are counted as (long) indels. ' +
kkonganti@11 156 "Default: ${params.quast_local_mis_size}",
kkonganti@11 157 cliflag: '--local-mis-size',
kkonganti@11 158 clivalue: (params.quast_local_mis_size ?: '')
kkonganti@11 159 ],
kkonganti@11 160 'quast_sca_gap_size': [
kkonganti@11 161 clihelp: 'Max allowed scaffold gap length difference. All relocations with inconsistency ' +
kkonganti@11 162 'less than scaffold-gap-size are counted as scaffold gap misassemblies. ' +
kkonganti@11 163 "Default: ${params.quast_sca_gap_size}",
kkonganti@11 164 cliflag: '--scaffold-gap-max-size',
kkonganti@11 165 clivalue: (params.quast_sca_gap_size ?: '')
kkonganti@11 166 ],
kkonganti@11 167 'quast_unaln_part_size': [
kkonganti@11 168 clihelp: 'Lower threshold for detecting partially unaligned contigs. Such contig should have ' +
kkonganti@11 169 'at least one unaligned fragment >= the threshold. ' +
kkonganti@11 170 "Default: ${params.quast_unaln_part_size}",
kkonganti@11 171 cliflag: '--unaligned-part-size',
kkonganti@11 172 clivalue: (params.quast_unaln_part_size ?: '')
kkonganti@11 173 ],
kkonganti@11 174 'quast_skip_unaln_mis_ctgs': [
kkonganti@11 175 clihelp: 'Do not distinguish contigs with >= 50% unaligned bases as a separate group ' +
kkonganti@11 176 'By default, QUAST does not count misassemblies in them. ' +
kkonganti@11 177 "Default: ${params.quast_skip_unaln_mis_ctgs}",
kkonganti@11 178 cliflag: '--skip-unaligned-mis-contigs',
kkonganti@11 179 clivalue: (params.quast_skip_unaln_mis_ctgs ?: '')
kkonganti@11 180 ],
kkonganti@11 181 'quast_fragmented': [
kkonganti@11 182 clihelp: 'Reference genome may be fragmented into small pieces (e.g. scaffolded reference). ' +
kkonganti@11 183 "Default: ${params.quast_fragmented}",
kkonganti@11 184 cliflag: '--fragmented',
kkonganti@11 185 clivalue: (params.quast_fragmented ? ' ' : '')
kkonganti@11 186 ],
kkonganti@11 187 'quast_frag_max_ident': [
kkonganti@11 188 clihelp: 'Mark translocation as fake if both alignments are located no further than N bases ' +
kkonganti@11 189 'from the ends of the reference fragments. ' +
kkonganti@11 190 "Default: ${params.quast_frag_max_ident}",
kkonganti@11 191 cliflag: '--fragmented-max-indent',
kkonganti@11 192 clivalue: (params.quast_frag_max_ident ?: '')
kkonganti@11 193 ],
kkonganti@11 194 'quast_plots_format': [
kkonganti@11 195 clihelp: 'Save plots in specified format [default: pdf]. ' +
kkonganti@11 196 'Supported formats: emf, eps, pdf, png, ps, raw, rgba, svg, svgz' +
kkonganti@11 197 "Default: ${params.quast_plots_format}",
kkonganti@11 198 cliflag: '--plots-format',
kkonganti@11 199 clivalue: (params.quast_plots_format ?: '')
kkonganti@11 200 ],
kkonganti@11 201 ]
kkonganti@11 202
kkonganti@11 203 toolspecs.each {
kkonganti@11 204 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@11 205 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@11 206 }
kkonganti@11 207
kkonganti@11 208 return tool
kkonganti@11 209 }