@@ -20,7 +20,7 @@ workflow classify_single {
2020
2121 File ncbi_taxdump_tgz
2222
23- File spikein_db
23+ File ? spikein_db
2424 File trim_clip_db
2525
2626 File kraken2_db_tgz
@@ -57,10 +57,6 @@ workflow classify_single {
5757 description : "An NCBI taxdump.tar.gz file that contains, at the minimum, a nodes.dmp and names.dmp file." ,
5858 patterns : ["*.tar.gz" , "*.tar.lz4" , "*.tar.bz2" , "*.tar.zst" ]
5959 }
60- cleaned_fastqc : {
61- description : "Output cleaned fastqc reports in HTML." ,
62- category : "other"
63- }
6460 deduplicated_reads_unaligned : {
6561 description : "Deduplication on unaligned reads in BAM format using mvicuna or cdhit." ,
6662 category : "other"
@@ -73,10 +69,6 @@ workflow classify_single {
7369 description : "Kraken report output file." ,
7470 category : "other"
7571 }
76- raw_fastqc :{
77- description : "Merged raw fastqc reads." ,
78- category : "other"
79- }
8072
8173 }
8274
@@ -86,10 +78,12 @@ workflow classify_single {
8678 }
8779 File reads_bam = merge_raw_reads .out_bam
8880
89- call reports .align_and_count as spikein {
90- input :
91- reads_bam = reads_bam ,
92- ref_db = spikein_db
81+ if (defined (spikein_db )) {
82+ call reports .align_and_count as spikein {
83+ input :
84+ reads_bam = reads_bam ,
85+ ref_db = select_first ([spikein_db ])
86+ }
9387 }
9488 call metagenomics .kraken2 as kraken2 {
9589 input :
@@ -106,9 +100,6 @@ workflow classify_single {
106100 taxonomic_names = taxa_to_dehost ,
107101 out_filename_suffix = "hs_depleted"
108102 }
109- call reports .fastqc as fastqc_cleaned {
110- input : reads_bam = deplete .bam_filtered_to_taxa
111- }
112103 call metagenomics .filter_bam_to_taxa as filter_acellular {
113104 input :
114105 classified_bam = reads_bam ,
@@ -182,6 +173,7 @@ workflow classify_single {
182173 Int read_counts_prespades_subsample = spades .subsample_read_count
183174
184175 File kraken2_summary_report = kraken2 .kraken2_summary_report
176+ File kraken2_reads_report = kraken2 .kraken2_reads_report
185177 File kraken2_krona_plot = kraken2 .krona_report_html
186178 File kraken2_top_taxa_report = report_primary_kraken_taxa .ranked_focal_report
187179 String kraken2_focal_taxon_name = report_primary_kraken_taxa .focal_tax_name
@@ -197,12 +189,12 @@ workflow classify_single {
197189 Array [Int ]? skani_hits_taxids = skani_hit_taxid
198190 Array [String ]? skani_hits_taxnames = skani_hit_taxname
199191
200- File raw_fastqc = merge_raw_reads .fastqc
201- File cleaned_fastqc = fastqc_cleaned . fastqc_html
202- File spikein_report = spikein .report
203- String spikein_tophit = spikein .top_hit_id
204- String spikein_pct_of_total_reads = spikein .pct_total_reads_mapped
205- String spikein_pct_lesser_hits = spikein .pct_lesser_hits_of_mapped
192+ File ? raw_fastqc = merge_raw_reads .fastqc
193+ File ? cleaned_fastqc = deplete . fastqc_html_report
194+ File ? spikein_report = spikein .report
195+ String ? spikein_tophit = spikein .top_hit_id
196+ String ? spikein_pct_of_total_reads = spikein .pct_total_reads_mapped
197+ String ? spikein_pct_lesser_hits = spikein .pct_lesser_hits_of_mapped
206198
207199 String kraken2_viral_classify_version = kraken2 .viralngs_version
208200 String deplete_viral_classify_version = deplete .viralngs_version
0 commit comments