annotate 0.4.0/lib/help/spades.nf @ 102:4425d68a184c

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