@@ -364,17 +364,14 @@ workflow NFCORE_RAREDISEASE {
364364 //
365365 // Create chromosome bed and intervals for splitting and gathering operations
366366 //
367- ch_scatter_split_intervals = channel. empty()
368- ch_scatter_genome_publish = channel. empty()
367+ ch_scatter_genome_split_intervals = channel. empty()
369368 if (! skip_snv_annotation) {
370369 SCATTER_GENOME (
371370 ch_genome_dictionary,
372371 ch_genome_fai,
373- ch_genome_fasta,
374- params. save_reference
372+ ch_genome_fasta
375373 )
376- ch_scatter_split_intervals = SCATTER_GENOME . out. split_intervals
377- ch_scatter_genome_publish = SCATTER_GENOME . out. publish
374+ ch_scatter_genome_split_intervals = SCATTER_GENOME . out. gatk4_splitintervals_split_intervals
378375 }
379376
380377 RAREDISEASE (
@@ -432,7 +429,7 @@ workflow NFCORE_RAREDISEASE {
432429 ch_sambamba_bed,
433430 ch_sample_id_map,
434431 ch_samples,
435- ch_scatter_split_intervals ,
432+ ch_scatter_genome_split_intervals ,
436433 ch_score_config_mt,
437434 ch_score_config_snv,
438435 ch_score_config_sv,
@@ -532,48 +529,48 @@ workflow NFCORE_RAREDISEASE {
532529 val_vep_cache_version
533530 )
534531 emit :
535- align_fastp_out = RAREDISEASE . out. align_fastp_out // channel: [ val(meta), path(json|html|log|reads|reads_fail|reads_merged) ]
536- align_genome_marked_bam = RAREDISEASE . out. align_genome_marked_bam // channel: [ val(meta), path(bam) ]
537- align_genome_marked_bai = RAREDISEASE . out. align_genome_marked_bai // channel: [ val(meta), path(bai) ]
538- align_genome_marked_cram = RAREDISEASE . out. align_genome_marked_cram // channel: [ val(meta), path(cram) ]
539- align_genome_marked_crai = RAREDISEASE . out. align_genome_marked_crai // channel: [ val(meta), path(crai) ]
540- align_markdup_metrics = RAREDISEASE . out. align_markdup_metrics // channel: [ val(meta), path(metrics) ]
541- multiqc_report = RAREDISEASE . out. multiqc_report // channel: /path/to/multiqc_report.html
542- qc_bam_chromograph_cov_plots = RAREDISEASE . out . qc_bam_chromograph_cov_plots // channel: [ val(meta), path(png ) ]
543- qc_bam_mosdepth_global_txt = RAREDISEASE . out. qc_bam_mosdepth_global_txt // channel: [ val(meta), path(txt ) ]
544- qc_bam_mosdepth_per_base_bed = RAREDISEASE . out. qc_bam_mosdepth_per_base_bed // channel: [ val(meta), path(bed.gz ) ]
545- qc_bam_mosdepth_per_base_csi = RAREDISEASE . out. qc_bam_mosdepth_per_base_csi // channel: [ val(meta), path(csi ) ]
546- qc_bam_mosdepth_per_base_d4 = RAREDISEASE . out. qc_bam_mosdepth_per_base_d4 // channel: [ val(meta), path(d4 ) ]
547- qc_bam_mosdepth_quantized_bed = RAREDISEASE . out. qc_bam_mosdepth_quantized_bed // channel: [ val(meta), path(bed.gz ) ]
548- qc_bam_mosdepth_quantized_csi = RAREDISEASE . out. qc_bam_mosdepth_quantized_csi // channel: [ val(meta), path(csi ) ]
549- qc_bam_mosdepth_regions_bed = RAREDISEASE . out. qc_bam_mosdepth_regions_bed // channel: [ val(meta), path(bed.gz ) ]
550- qc_bam_mosdepth_regions_csi = RAREDISEASE . out. qc_bam_mosdepth_regions_csi // channel: [ val(meta), path(csi ) ]
551- qc_bam_mosdepth_regions_txt = RAREDISEASE . out. qc_bam_mosdepth_regions_txt // channel: [ val(meta), path(txt ) ]
552- qc_bam_mosdepth_summary_txt = RAREDISEASE . out. qc_bam_mosdepth_summary_txt // channel: [ val(meta), path(txt) ]
553- qc_bam_mosdepth_thresholds_bed = RAREDISEASE . out . qc_bam_mosdepth_thresholds_bed // channel: [ val(meta), path(bed.gz ) ]
554- qc_bam_mosdepth_thresholds_csi = RAREDISEASE . out. qc_bam_mosdepth_thresholds_csi // channel: [ val(meta), path(csi ) ]
555- qc_bam_ngsbits_samplegender_tsv = RAREDISEASE . out. qc_bam_ngsbits_samplegender_tsv // channel: [ val(meta), path(tsv ) ]
556- qc_bam_picard_collecthsmetrics_metrics = RAREDISEASE . out . qc_bam_picard_collecthsmetrics_metrics // channel: [ val(meta), path(metrics ) ]
557- qc_bam_picard_collectmultiplemetrics_metrics = RAREDISEASE . out. qc_bam_picard_collectmultiplemetrics_metrics // channel: [ val(meta), path(metrics) ]
558- qc_bam_picard_collectmultiplemetrics_pdf = RAREDISEASE . out. qc_bam_picard_collectmultiplemetrics_pdf // channel: [ val(meta), path(pdf ) ]
559- qc_bam_sambamba_depth_bed = RAREDISEASE . out. qc_bam_sambamba_depth_bed // channel: [ val(meta), path(bed ) ]
560- qc_bam_tiddit_cov_cov = RAREDISEASE . out. qc_bam_tiddit_cov_cov // channel: [ val(meta), path(bed) ]
561- qc_bam_tiddit_cov_wig = RAREDISEASE . out. qc_bam_tiddit_cov_wig // channel: [ val(meta), path(wig ) ]
562- qc_bam_ucsc_wigtobigwig_bw = RAREDISEASE . out . qc_bam_ucsc_wigtobigwig_bw // channel: [ val(meta), path(bw ) ]
563- qc_bam_verifybamid_ancestry = RAREDISEASE . out. qc_bam_verifybamid_ancestry // channel: [ val(meta), path(ancestry ) ]
564- qc_bam_verifybamid_bed = RAREDISEASE . out. qc_bam_verifybamid_bed // channel: [ val(meta), path(bed ) ]
565- qc_bam_verifybamid_log = RAREDISEASE . out. qc_bam_verifybamid_log // channel: [ val(meta), path(log ) ]
566- qc_bam_verifybamid_mu = RAREDISEASE . out. qc_bam_verifybamid_mu // channel: [ val(meta), path(mu ) ]
567- qc_bam_verifybamid_self_sm = RAREDISEASE . out . qc_bam_verifybamid_self_sm // channel: [ val(meta), path(selfSM ) ]
568- qc_bam_verifybamid_ud = RAREDISEASE . out. qc_bam_verifybamid_ud // channel: [ val(meta), path(ud ) ]
569- qc_bam_wgsmetrics_wg = RAREDISEASE . out. qc_bam_wgsmetrics_wg // channel: [ val(meta), path(metrics ) ]
570- qc_bam_wgsmetrics_y = RAREDISEASE . out. qc_bam_wgsmetrics_y // channel: [ val(meta), path(metrics) ]
571- subsample_mt_bai = RAREDISEASE . out. subsample_mt_bai // channel: [ val(meta), path(bai ) ]
572- subsample_mt_bam = RAREDISEASE . out. subsample_mt_bam // channel: [ val(meta), path(bam ) ]
573- publish = RAREDISEASE . out. publish
574- .mix(ch_scatter_genome_publish)
575- .mix(ch_pedfile_publish)
576- .mix(ch_references . publish) // channel: [ val(destination), val(value) ]
532+ align_fastp_out = RAREDISEASE . out. align_fastp_out // channel: [ val(meta), path(json|html|log|reads|reads_fail|reads_merged) ]
533+ align_genome_marked_bam = RAREDISEASE . out. align_genome_marked_bam // channel: [ val(meta), path(bam) ]
534+ align_genome_marked_bai = RAREDISEASE . out. align_genome_marked_bai // channel: [ val(meta), path(bai) ]
535+ align_genome_marked_cram = RAREDISEASE . out. align_genome_marked_cram // channel: [ val(meta), path(cram) ]
536+ align_genome_marked_crai = RAREDISEASE . out. align_genome_marked_crai // channel: [ val(meta), path(crai) ]
537+ align_markdup_metrics = RAREDISEASE . out. align_markdup_metrics // channel: [ val(meta), path(metrics) ]
538+ multiqc_report = RAREDISEASE . out. multiqc_report // channel: /path/to/multiqc_report.html
539+ scatter_genome_split_intervals = ch_scatter_genome_split_intervals // channel: [ val(meta), path(interval_list ) ]
540+ qc_bam_chromograph_cov_plots = RAREDISEASE . out. qc_bam_chromograph_cov_plots // channel: [ val(meta), path(png ) ]
541+ qc_bam_mosdepth_global_txt = RAREDISEASE . out. qc_bam_mosdepth_global_txt // channel: [ val(meta), path(txt ) ]
542+ qc_bam_mosdepth_per_base_bed = RAREDISEASE . out. qc_bam_mosdepth_per_base_bed // channel: [ val(meta), path(bed.gz ) ]
543+ qc_bam_mosdepth_per_base_csi = RAREDISEASE . out. qc_bam_mosdepth_per_base_csi // channel: [ val(meta), path(csi ) ]
544+ qc_bam_mosdepth_per_base_d4 = RAREDISEASE . out. qc_bam_mosdepth_per_base_d4 // channel: [ val(meta), path(d4 ) ]
545+ qc_bam_mosdepth_quantized_bed = RAREDISEASE . out. qc_bam_mosdepth_quantized_bed // channel: [ val(meta), path(bed.gz ) ]
546+ qc_bam_mosdepth_quantized_csi = RAREDISEASE . out. qc_bam_mosdepth_quantized_csi // channel: [ val(meta), path(csi ) ]
547+ qc_bam_mosdepth_regions_bed = RAREDISEASE . out. qc_bam_mosdepth_regions_bed // channel: [ val(meta), path(bed.gz ) ]
548+ qc_bam_mosdepth_regions_csi = RAREDISEASE . out. qc_bam_mosdepth_regions_csi // channel: [ val(meta), path(csi ) ]
549+ qc_bam_mosdepth_regions_txt = RAREDISEASE . out. qc_bam_mosdepth_regions_txt // channel: [ val(meta), path(txt) ]
550+ qc_bam_mosdepth_summary_txt = RAREDISEASE . out . qc_bam_mosdepth_summary_txt // channel: [ val(meta), path(txt ) ]
551+ qc_bam_mosdepth_thresholds_bed = RAREDISEASE . out. qc_bam_mosdepth_thresholds_bed // channel: [ val(meta), path(bed.gz ) ]
552+ qc_bam_mosdepth_thresholds_csi = RAREDISEASE . out. qc_bam_mosdepth_thresholds_csi // channel: [ val(meta), path(csi ) ]
553+ qc_bam_ngsbits_samplegender_tsv = RAREDISEASE . out . qc_bam_ngsbits_samplegender_tsv // channel: [ val(meta), path(tsv ) ]
554+ qc_bam_picard_collecthsmetrics_metrics = RAREDISEASE . out. qc_bam_picard_collecthsmetrics_metrics // channel: [ val(meta), path(metrics) ]
555+ qc_bam_picard_collectmultiplemetrics_metrics = RAREDISEASE . out. qc_bam_picard_collectmultiplemetrics_metrics // channel: [ val(meta), path(metrics ) ]
556+ qc_bam_picard_collectmultiplemetrics_pdf = RAREDISEASE . out. qc_bam_picard_collectmultiplemetrics_pdf // channel: [ val(meta), path(pdf ) ]
557+ qc_bam_sambamba_depth_bed = RAREDISEASE . out. qc_bam_sambamba_depth_bed // channel: [ val(meta), path(bed) ]
558+ qc_bam_tiddit_cov_cov = RAREDISEASE . out. qc_bam_tiddit_cov_cov // channel: [ val(meta), path(bed ) ]
559+ qc_bam_tiddit_cov_wig = RAREDISEASE . out . qc_bam_tiddit_cov_wig // channel: [ val(meta), path(wig ) ]
560+ qc_bam_ucsc_wigtobigwig_bw = RAREDISEASE . out. qc_bam_ucsc_wigtobigwig_bw // channel: [ val(meta), path(bw ) ]
561+ qc_bam_verifybamid_ancestry = RAREDISEASE . out. qc_bam_verifybamid_ancestry // channel: [ val(meta), path(ancestry ) ]
562+ qc_bam_verifybamid_bed = RAREDISEASE . out. qc_bam_verifybamid_bed // channel: [ val(meta), path(bed ) ]
563+ qc_bam_verifybamid_log = RAREDISEASE . out. qc_bam_verifybamid_log // channel: [ val(meta), path(log ) ]
564+ qc_bam_verifybamid_mu = RAREDISEASE . out . qc_bam_verifybamid_mu // channel: [ val(meta), path(mu ) ]
565+ qc_bam_verifybamid_self_sm = RAREDISEASE . out. qc_bam_verifybamid_self_sm // channel: [ val(meta), path(selfSM ) ]
566+ qc_bam_verifybamid_ud = RAREDISEASE . out. qc_bam_verifybamid_ud // channel: [ val(meta), path(ud ) ]
567+ qc_bam_wgsmetrics_wg = RAREDISEASE . out. qc_bam_wgsmetrics_wg // channel: [ val(meta), path(metrics) ]
568+ qc_bam_wgsmetrics_y = RAREDISEASE . out. qc_bam_wgsmetrics_y // channel: [ val(meta), path(metrics ) ]
569+ subsample_mt_bai = RAREDISEASE . out. subsample_mt_bai // channel: [ val(meta), path(bai ) ]
570+ subsample_mt_bam = RAREDISEASE . out. subsample_mt_bam // channel: [ val(meta), path(bam) ]
571+ publish = RAREDISEASE . out . publish
572+ .mix(ch_pedfile_publish)
573+ .mix(ch_references . publish) // channel: [ val(destination), val(value) ]
577574}
578575/*
579576~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -762,6 +759,7 @@ workflow {
762759 .mix(NFCORE_RAREDISEASE . out. qc_bam_verifybamid_ud)
763760 .mix(NFCORE_RAREDISEASE . out. qc_bam_wgsmetrics_wg)
764761 .mix(NFCORE_RAREDISEASE . out. qc_bam_wgsmetrics_y)
762+ processed_references = NFCORE_RAREDISEASE . out. scatter_genome_split_intervals
765763 subworkflow_results = NFCORE_RAREDISEASE . out. publish
766764}
767765
@@ -778,6 +776,10 @@ output {
778776 qc_bam {
779777 path { _meta, _file -> " qc_bam/" }
780778 }
779+ processed_references {
780+ path { _meta, _file -> " processed_references/" }
781+ enabled params. save_reference
782+ }
781783 subworkflow_results {
782784 path { destination, _value -> destination }
783785 }
0 commit comments