annotate 0.5.0/lib/help/spades.nf @ 1:365849f031fd

"planemo upload"
author kkonganti
date Mon, 05 Jun 2023 18:48:51 -0400
parents
children
rev   line source
kkonganti@1 1 // Help text for spades within CPIPES.
kkonganti@1 2
kkonganti@1 3 def spadesHelp(params) {
kkonganti@1 4
kkonganti@1 5 Map tool = [:]
kkonganti@1 6 Map toolspecs = [:]
kkonganti@1 7 tool.text = [:]
kkonganti@1 8 tool.helpparams = [:]
kkonganti@1 9
kkonganti@1 10 toolspecs = [
kkonganti@1 11 'spades_run': [
kkonganti@1 12 clihelp: 'Run SPAdes assembler. Default: ' +
kkonganti@1 13 (params.spades_run ?: false),
kkonganti@1 14 cliflag: null,
kkonganti@1 15 clivalue: null
kkonganti@1 16 ],
kkonganti@1 17 'spades_isolate': [
kkonganti@1 18 clihelp: 'This flag is highly recommended for high-coverage isolate and ' +
kkonganti@1 19 "multi-cell data. Default: ${params.spades_isolate}",
kkonganti@1 20 cliflag: '--isolate',
kkonganti@1 21 clivalue: (params.spades_isolate ? ' ' : '')
kkonganti@1 22 ],
kkonganti@1 23 'spades_sc': [
kkonganti@1 24 clihelp: 'This flag is required for MDA (single-cell) data. ' +
kkonganti@1 25 "Default: ${params.spades_sc}",
kkonganti@1 26 cliflag: '--sc',
kkonganti@1 27 clivalue: (params.spades_sc ? ' ' : '')
kkonganti@1 28 ],
kkonganti@1 29 'spades_meta': [
kkonganti@1 30 clihelp: 'This flag is required for metagenomic data. ' +
kkonganti@1 31 "Default: ${params.spades_meta}",
kkonganti@1 32 cliflag: '--meta',
kkonganti@1 33 clivalue: (params.spades_meta ? ' ' : '')
kkonganti@1 34 ],
kkonganti@1 35 'spades_bio': [
kkonganti@1 36 clihelp: 'This flag is required for biosytheticSPAdes mode. ' +
kkonganti@1 37 "Default: ${params.spades_bio}",
kkonganti@1 38 cliflag: '--bio',
kkonganti@1 39 clivalue: (params.spades_bio ? ' ' : '')
kkonganti@1 40 ],
kkonganti@1 41 'spades_corona': [
kkonganti@1 42 clihelp: 'This flag is required for coronaSPAdes mode. ' +
kkonganti@1 43 "Default: ${params.spades_corona}",
kkonganti@1 44 cliflag: '--corona',
kkonganti@1 45 clivalue: (params.spades_corona ? ' ' : '')
kkonganti@1 46 ],
kkonganti@1 47 'spades_rna': [
kkonganti@1 48 clihelp: 'This flag is required for RNA-Seq data. ' +
kkonganti@1 49 "Default: ${params.spades_rna}",
kkonganti@1 50 cliflag: '--rna',
kkonganti@1 51 clivalue: (params.spades_rna ? ' ' : '')
kkonganti@1 52 ],
kkonganti@1 53 'spades_plasmid': [
kkonganti@1 54 clihelp: 'Runs plasmidSPAdes pipeline for plasmid detection. ' +
kkonganti@1 55 "Default: ${params.spades_plasmid}",
kkonganti@1 56 cliflag: '--plasmid',
kkonganti@1 57 clivalue: (params.spades_plasmid ? ' ' : '')
kkonganti@1 58 ],
kkonganti@1 59 'spades_metaviral': [
kkonganti@1 60 clihelp: 'Runs metaviralSPAdes pipeline for virus detection. ' +
kkonganti@1 61 "Default: ${params.spades_metaviral}",
kkonganti@1 62 cliflag: '--metaviral',
kkonganti@1 63 clivalue: (params.spades_metaviral ? ' ' : '')
kkonganti@1 64 ],
kkonganti@1 65 'spades_metaplasmid': [
kkonganti@1 66 clihelp: 'Runs metaplasmidSPAdes pipeline for plasmid detection in ' +
kkonganti@1 67 "metagenomics datasets. Default: ${params.spades_metaplasmid}",
kkonganti@1 68 cliflag: '--metaplasmid',
kkonganti@1 69 clivalue: (params.spades_metaplasmid ? ' ' : '')
kkonganti@1 70 ],
kkonganti@1 71 'spades_rnaviral': [
kkonganti@1 72 clihelp: 'This flag enables virus assembly module from RNA-Seq data. ' +
kkonganti@1 73 "Default: ${params.spades_rnaviral}",
kkonganti@1 74 cliflag: '--rnaviral',
kkonganti@1 75 clivalue: (params.spades_rnaviral ? ' ' : '')
kkonganti@1 76 ],
kkonganti@1 77 'spades_iontorrent': [
kkonganti@1 78 clihelp: 'This flag is required for IonTorrent data. ' +
kkonganti@1 79 "Default: ${params.spades_iontorrent}",
kkonganti@1 80 cliflag: '--iontorrent',
kkonganti@1 81 clivalue: (params.spades_iontorrent ? ' ' : '')
kkonganti@1 82 ],
kkonganti@1 83 'spades_only_assembler': [
kkonganti@1 84 clihelp: 'Runs only the SPAdes assembler module (without read error correction). ' +
kkonganti@1 85 "Default: ${params.spades_only_assembler}",
kkonganti@1 86 cliflag: '--only-assembler',
kkonganti@1 87 clivalue: (params.spades_only_assembler ? ' ' : '')
kkonganti@1 88 ],
kkonganti@1 89 'spades_careful': [
kkonganti@1 90 clihelp: 'Tries to reduce the number of mismatches and short indels in the assembly. ' +
kkonganti@1 91 "Default: ${params.spades_careful}",
kkonganti@1 92 cliflag: '--careful',
kkonganti@1 93 clivalue: (params.spades_careful ? ' ' : '')
kkonganti@1 94 ],
kkonganti@1 95 'spades_cov_cutoff': [
kkonganti@1 96 clihelp: 'Coverage cutoff value (a positive float number). ' +
kkonganti@1 97 "Default: ${params.spades_cov_cutoff}",
kkonganti@1 98 cliflag: '--cov-cutoff',
kkonganti@1 99 clivalue: (params.spades_cov_cutoff ?: '')
kkonganti@1 100 ],
kkonganti@1 101 'spades_k': [
kkonganti@1 102 clihelp: 'List of k-mer sizes (must be odd and less than 128). ' +
kkonganti@1 103 "Default: ${params.spades_k}",
kkonganti@1 104 cliflag: '-k',
kkonganti@1 105 clivalue: (params.spades_k ?: '')
kkonganti@1 106 ],
kkonganti@1 107 'spades_hmm': [
kkonganti@1 108 clihelp: 'Directory with custom hmms that replace the default ones (very rare). ' +
kkonganti@1 109 "Default: ${params.spades_hmm}",
kkonganti@1 110 cliflag: '--custom-hmms',
kkonganti@1 111 clivalue: (params.spades_hmm ?: '')
kkonganti@1 112 ]
kkonganti@1 113 ]
kkonganti@1 114
kkonganti@1 115 toolspecs.each {
kkonganti@1 116 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@1 117 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@1 118 }
kkonganti@1 119
kkonganti@1 120 return tool
kkonganti@1 121 }