@@ -53,6 +53,7 @@ workflow VIRALGENIE {
53
53
54
54
take :
55
55
ch_samplesheet // channel: samplesheet read in from --input
56
+
56
57
main :
57
58
58
59
/*
@@ -71,7 +72,7 @@ workflow VIRALGENIE {
71
72
ch_spades_hmm = createFileChannel(params. spades_hmm)
72
73
ch_constraint_meta = createFileChannel(params. mapping_constraints)
73
74
74
- // Databases, we really don't want to stage uncessary databases
75
+ // Databases, we really don't want to stage unnecessary databases
75
76
ch_ref_pool = (! params. skip_assembly && ! params. skip_polishing) || (! params. skip_consensus_qc && ! params. skip_blast_qc) ? createChannel( params. reference_pool, " reference" , true ) : Channel . empty()
76
77
ch_kraken2_db = (! params. skip_assembly && ! params. skip_polishing && ! params. skip_precluster) || ! params. skip_read_classification ? createChannel( params. kraken2_db, " kraken2" , (' kraken2' in read_classifiers || ' kraken2' in contig_classifiers) ) : Channel . empty()
77
78
ch_kaiju_db = (! params. skip_assembly && ! params. skip_polishing && ! params. skip_precluster) || ! params. skip_read_classification ? createChannel( params. kaiju_db, " kaiju" , (' kaiju' in read_classifiers || ' kaiju' in contig_classifiers) ) : Channel . empty()
@@ -104,7 +105,7 @@ workflow VIRALGENIE {
104
105
ch_db = Channel . empty()
105
106
if ((! params. skip_assembly && ! params. skip_polishing) || ! params. skip_consensus_qc || ! params. skip_read_classification || (! params. skip_preprocessing && ! params. skip_hostremoval)){
106
107
107
- ch_db_raw = ch_db. mix(ch_ref_pool,ch_kraken2_db, ch_kaiju_db, ch_checkv_db, ch_bracken_db, ch_k2_host, ch_annotation_db)
108
+ ch_db_raw = ch_db. mix(ch_ref_pool,ch_kraken2_db, ch_kaiju_db, ch_checkv_db, ch_bracken_db, ch_k2_host, ch_annotation_db, ch_prokka_db )
108
109
UNPACK_DB (ch_db_raw)
109
110
110
111
UNPACK_DB . out. db
@@ -127,7 +128,7 @@ workflow VIRALGENIE {
127
128
return [ unpacked ]
128
129
}
129
130
.set{ch_db}
130
- ch_versions = ch_versions. mix(UNPACK_DB . out. versions)
131
+ ch_versions = ch_versions. mix(UNPACK_DB . out. versions)
131
132
132
133
// transfer to value channels so processes are not just done once
133
134
// '.collect()' is necessary to transform to list so cartesian products are made downstream
@@ -185,7 +186,6 @@ workflow VIRALGENIE {
185
186
ch_versions = ch_versions. mix(PREPROCESSING_ILLUMINA . out. versions)
186
187
}
187
188
188
-
189
189
// Determining metagenomic diversity
190
190
if (! params. skip_read_classification) {
191
191
FASTQ_KRAKEN_KAIJU (
@@ -260,7 +260,6 @@ workflow VIRALGENIE {
260
260
)
261
261
ch_versions = ch_versions. mix(ALIGN_COLLAPSE_CONTIGS . out. versions)
262
262
263
-
264
263
SINGLETON_FILTERING (
265
264
ch_centroids_members. singletons,
266
265
params. min_contig_size,
@@ -425,15 +424,14 @@ workflow VIRALGENIE {
425
424
ch_checkv_db,
426
425
ch_blast_refdb,
427
426
ch_annotation_db,
428
- ch_prokka_db,
427
+ ch_prokka_db
429
428
)
430
429
ch_versions = ch_versions. mix(CONSENSUS_QC . out. versions)
431
430
ch_multiqc_files = ch_multiqc_files. mix(CONSENSUS_QC . out. mqc. collect{it[1 ]}. ifEmpty([]))
432
431
ch_checkv_summary = CONSENSUS_QC . out. checkv. collect{it[1 ]}. ifEmpty([])
433
432
ch_quast_summary = CONSENSUS_QC . out. quast. collect{it[1 ]}. ifEmpty([])
434
433
ch_blast_summary = CONSENSUS_QC . out. blast. collect{it[1 ]}. ifEmpty([])
435
434
ch_annotation_summary = CONSENSUS_QC . out. annotation. collect{it[1 ]}. ifEmpty([])
436
-
437
435
}
438
436
439
437
//
@@ -456,7 +454,7 @@ workflow VIRALGENIE {
456
454
ch_multiqc_custom_methods_description = params. multiqc_methods_description ?
457
455
file(params. multiqc_methods_description, checkIfExists : true ) :
458
456
file(" $projectDir /assets/methods_description_template.yml" , checkIfExists : true )
459
- ch_methods_description = Channel . value(
457
+ ch_methods_description = Channel . value(
460
458
methodsDescriptionText(ch_multiqc_custom_methods_description))
461
459
462
460
//
@@ -497,12 +495,9 @@ workflow VIRALGENIE {
497
495
498
496
emit :
499
497
multiqc_report = CUSTOM_MULTIQC . out. report. toList() // channel: /path/to/multiqc_report.html
500
- versions = ch_versions // channel: [ path(versions.yml) ]
501
-
498
+ versions = ch_versions // channel: [ path(versions.yml) ]
502
499
}
503
500
504
-
505
-
506
501
/*
507
502
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
508
503
THE END
0 commit comments