@@ -143,6 +143,7 @@ workflow centrifuge_database_wf {
143
143
/* *************************
144
144
* MODULES
145
145
**************************/
146
+ include artic from ' ./modules/artic'
146
147
include abricate from ' ./modules/abricate'
147
148
include abricateBatch from ' ./modules/abricateBatch'
148
149
include abricateParser from ' ./modules/PARSER/abricateParser'
@@ -168,13 +169,20 @@ workflow centrifuge_database_wf {
168
169
include fastqTofasta from ' ./modules/fastqTofasta'
169
170
include fasttree from ' ./modules/fasttree'
170
171
include filter_fasta_by_length from ' ./modules/filter_fasta_by_length'
172
+ include flye from ' ./modules/flye'
173
+ include racon from ' ./modules/racon'
174
+ include medaka from ' ./modules/medaka'
175
+ include minimap2_polish from ' ./modules/minimap2'
171
176
include gtdbtk from ' ./modules/gtdbtk'
172
177
include gtdbtk_download_db from ' ./modules/gtdbtkgetdatabase'
173
178
include guppy_gpu from ' ./modules/guppy_gpu'
179
+ include gviz from ' ./modules/PLOTS/gviz'
174
180
include krona from ' ./modules/krona'
181
+ include live_guppy_gpu from ' ./modules/guppy_gpu'
175
182
include mafft from ' ./modules/mafft'
176
183
include mafft_supp from ' ./modules/mafft_supp'
177
184
include metamaps from ' ./modules/metamaps'
185
+ include minimap2 from ' ./modules/minimap2'
178
186
include nanoplot from ' ./modules/nanoplot'
179
187
include overview_parser from ' ./modules/PARSER/overview_parser'
180
188
include parse_plasmidinfo from ' ./modules/PARSER/parse_plasmidinfo'
@@ -185,20 +193,15 @@ workflow centrifuge_database_wf {
185
193
include prokka from ' ./modules/prokka'
186
194
include removeViaMapping from ' ./modules/removeViaMapping'
187
195
include rmetaplot from ' ./modules/rmetaplot'
196
+ include samtools from ' ./modules/samtools'
188
197
include sourclusterPlot from ' ./modules/PLOTS/sourclusterPlot'
189
198
include sourmash_download_db from ' ./modules/sourmashgetdatabase'
190
199
include sourmashclassification from ' ./modules/sourclass'
191
200
include sourmashclusterdir from ' ./modules/sourclusterdir'
192
201
include sourmashclusterfasta from ' ./modules/sourclusterfasta'
193
202
include sourmashmeta from ' ./modules/sourmeta'
194
- include toytree from ' ./modules/toytree'
195
-
196
- // new
197
- include live_guppy_gpu from ' ./modules/guppy_gpu'
198
- include minimap2 from ' ./modules/minimap2'
199
- include samtools from ' ./modules/samtools'
200
- include gviz from ' ./modules/PLOTS/gviz'
201
-
203
+ include toytree from ' ./modules/toytree'
204
+ include filter_fastq_by_length from ' ./modules/filter_fastq_by_length'
202
205
203
206
/* *************************
204
207
* SUB WORKFLOWS
@@ -381,10 +384,18 @@ workflow plasmid_comparision_wf {
381
384
chromomap(parse_samtools(parse_plasmidinfo(group_by_sample). join(fastas)))
382
385
}
383
386
387
+ workflow assembly_ont_wf {
388
+ take : fastq
389
+ main : medaka(racon(minimap2_polish(flye(fastq))))
390
+ emit : medaka. out
391
+ }
392
+
393
+
384
394
/* *************************
385
395
* Work in Progress section
386
396
**************************/
387
-
397
+ // Not sure about this one: its mainly implemented in the other workflow
398
+ // prokka is hard to parse here
388
399
workflow plasmid_annotate_wf {
389
400
take :
390
401
fastas // val(name), path(file)
@@ -401,6 +412,9 @@ workflow plasmid_annotate_wf {
401
412
chromomap(parse_samtools(parse_prokka(group_by_sample). join(fastas)))
402
413
}
403
414
415
+ // TODO: fastq files are not correctly stored, its just one - some "overwrite" bug i guess??
416
+ // could be that my links have the wrong name or so ?
417
+ // txt was working so you could add the PWD hast
404
418
workflow live_analysis_wf {
405
419
take :
406
420
sample_name
@@ -449,6 +463,8 @@ workflow {
449
463
if (params. sourmeta && params. fastq) { sourmash_WIMP_FASTQ_wf(fastq_input_ch, sourmash_database_wf()) }
450
464
if (params. tree_aa && params. dir && ! params. fasta) { amino_acid_tree_wf(dir_input_ch) }
451
465
if (params. tree_aa && params. dir && params. fasta) { amino_acid_tree_supp_wf(dir_input_ch, fasta_input_ch) }
466
+ if (params. assembly_ont && params. fastq) { assembly_ont_wf(fastq_input_ch) }
467
+ if (params. artic_ncov19 && params. fastq) { artic_nCov19_wf(fastq_input_ch) }
452
468
453
469
// live workflows
454
470
if (params. watchFast5 && params. samplename && params. fasta) { live_analysis_wf(sample_name_ch, fast5_live_input_ch, fasta_input_ch) }
@@ -483,7 +499,7 @@ def helpMSG() {
483
499
${ c_blue} --abricate ${ c_reset} antibiotic and plasmid screening ${ c_green} [--fasta]${ c_reset} or ${ c_green} [--fastq]${ c_reset}
484
500
${ c_blue} --mobile ${ c_reset} screens for IS elements ${ c_green} [--fasta]${ c_reset}
485
501
${ c_blue} --res_compare ${ c_reset} detailed assembly resistance comparision of 2 or more assemblies ${ c_green} [--fasta]${ c_reset}
486
- ${ c_dim} ..option flags: [--coverage] include coverage info written in fasta headers on last position e.g. > name_cov_9.3354 ${ c_reset}
502
+ ${ c_dim} ..option flags: [--coverage] use coverage info in fasta headers on last position e.g. > name_cov_9.3354 ${ c_reset}
487
503
${ c_blue} --plasmid_analysis ${ c_reset} analysis of plasmids with plots ${ c_green} [--fasta]${ c_reset}
488
504
489
505
${ c_yellow} Cluster and Classifications:${ c_reset}
@@ -498,25 +514,32 @@ def helpMSG() {
498
514
${ c_dim} ..option flags: [--gtdbtk_db] path to your own DB instead ${ c_reset}
499
515
500
516
${ c_yellow} Metagenomic Workflows:${ c_reset}
501
- ${ c_blue} --centrifuge ${ c_reset} metagenomic classification of reads${ c_green} [--fastq]${ c_reset} or ${ c_green} [--fastqPair]${ c_reset}
517
+ ${ c_blue} --centrifuge ${ c_reset} metagenomic classification of reads ${ c_green} [--fastq]${ c_reset} or ${ c_green} [--fastqPair]${ c_reset}
502
518
${ c_dim} ..option flags: [--centrifuge_db] path to your own DB instead, either .tar or .tar.gz ${ c_reset}
503
- ${ c_blue} --metamaps ${ c_reset} metagenomic class. of long reads ${ c_green} [--fastq]${ c_reset}
519
+ ${ c_blue} --metamaps ${ c_reset} metagenomic class. of long reads ${ c_green} [--fastq]${ c_reset}
504
520
${ c_dim} ..mandatory flags: [--memory] [--tax_db] e.g. --memory 100 --tax_db /databases/miniSeq+H
505
521
506
522
${ c_yellow} Nanopore specific Workflows:${ c_reset}
507
523
${ c_blue} --guppygpu ${ c_reset} basecalling via guppy-gpu-nvidia ${ c_green} [--dir]${ c_reset}
508
524
${ c_dim} ..option flags: [--flowcell] [--kit] [--barcode] [--modbase]
509
- ..default settings: [--flowcell $params . flowcell ] [--kit $params . kit ] [--modbase FALSE] ${ c_reset}
525
+ ..default settings: [--flowcell $params . flowcell ] [--kit $params . kit ] [--modbase FALSE] ${ c_reset}
510
526
${ c_dim} ..config files: turn on via [--config], modify config type via [--configtype]
511
- ..default config type: [--configtype $params . configtype ] ${ c_reset}
527
+ ..default config type: [--configtype $params . configtype ] ${ c_reset}
512
528
${ c_blue} --nanoplot ${ c_reset} read quality via nanoplot ${ c_green} [--fastq]${ c_reset}
529
+ ${ c_blue} --assembly_ont ${ c_reset} simple nanopore assembly ${ c_green} [--fastq]${ c_reset}
530
+ ${ c_dim} ..option flags: [--gsize ${ params.gsize} ] [--model ${ params.model} ] [--overlap ${ params.overlap} ]
531
+
532
+ ${ c_yellow} Nanopore live analysis Workflows (WIP):${ c_reset}
533
+ ${ c_blue} --watchFast5 ${ c_reset} watch a dir for fast5 files, basecall them and map against reference
534
+ Needs: ${ c_green} [--samplename]${ c_reset} and one multifasta file via ${ c_green} [--fasta]${ c_reset}
513
535
514
536
${ c_yellow} Other Workflows:${ c_reset}
515
- ${ c_blue} --deepHumanPathogen ${ c_reset} pathogen identification in human ${ c_green} [--fastqPair '*_R{1,2}.fastq.gz']${ c_reset}
516
- ${ c_blue} --plasflow ${ c_reset} predicts & seperates plasmid-seqs${ c_green} [--fasta]${ c_reset}
517
- ${ c_blue} --tree_aa ${ c_reset} build a aminoacid tree of a dir with aa seqs ${ c_green} [--dir]${ c_reset}
518
- ${ c_dim} ..option flags: [--filenames] use filenames as labels instead of contig names${ c_reset}
519
- [--fasta] add one multi protein file as "tree enhancer"e.g. [--fasta multipleProteins.aa]${ c_reset}
537
+ ${ c_blue} --deepHumanPathogen ${ c_reset} pathogen identification in human ${ c_green} [--fastqPair '*_R{1,2}.fastq.gz']${ c_reset}
538
+ ${ c_blue} --plasflow ${ c_reset} predicts & seperates plasmid-seqs ${ c_green} [--fasta]${ c_reset}
539
+ ${ c_blue} --tree_aa ${ c_reset} aminoacid tree of a dir with aa seq ${ c_green} [--dir]${ c_reset}
540
+ ${ c_dim} ..option flags: [--filenames] use filenames as labels instead of contig names
541
+ ${ c_dim} [--fasta] add one multi protein file as "tree enhancer"
542
+ ${ c_dim} e.g. [--fasta multipleProteins.aa]${ c_reset}
520
543
521
544
${ c_reset} Options:
522
545
--cores max cores for local use [default: $params . cores ]
0 commit comments