Skip to content

Commit

Permalink
Make sure variables required for combine_file_hashes workflow are def…
Browse files Browse the repository at this point in the history
…ined.
  • Loading branch information
ajmaurais committed Sep 18, 2024
1 parent c396428 commit 6274fc2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ workflow {
)

quant_library = encyclopeda_export_elib.out.elib
spec_lib_hashes = encyclopeda_export_elib.out.output_file_hashes
spec_lib_hashes = encyclopeda_export_elib.out.output_file_stats

all_elib_ch = encyclopeda_export_elib.out.elib.concat(
encyclopeda_export_elib.out.individual_elibs
Expand All @@ -222,7 +222,7 @@ workflow {
)

encyclopedia_version = encyclopedia_quant.out.encyclopedia_version
search_file_hashes = encyclopedia_quant.out.output_file_hashes.concat(spec_lib_hashes)
search_file_stats = encyclopedia_quant.out.output_file_stats.concat(spec_lib_hashes)

final_elib = encyclopedia_quant.out.elib
all_elib_ch = all_elib_ch.concat(
Expand Down Expand Up @@ -288,7 +288,7 @@ workflow {
)

diann_version = diann_search.out.diann_version
search_file_hashes = diann_search.out.output_file_hashes
search_file_stats = diann_search.out.output_file_stats

// create compatible spectral library for Skyline, if needed
if(!params.skyline.skip) {
Expand Down Expand Up @@ -334,11 +334,17 @@ workflow {
}

final_skyline_file = skyline_import.out.skyline_results
final_skyline_hash = skyline_import.out.skyline_results_hash

// generate QC report
if(!params.qc_report.skip) {
generate_dia_qc_report(final_skyline_file, replicate_metadata)
dia_qc_version = generate_dia_qc_report.out.dia_qc_version
qc_report_files = generate_dia_qc_report.out.qc_reports.concat(
generate_dia_qc_report.out.qc_report_qmd,
generate_dia_qc_report.out.qc_report_db,
generate_dia_qc_report.out.qc_tables
)

// Export PDC gene tables
if(params.pdc.gene_level_data != null) {
Expand All @@ -351,6 +357,7 @@ workflow {
}
} else {
dia_qc_version = Channel.empty()
gene_reports = Channel.empty()
}

// run reports if requested
Expand Down Expand Up @@ -389,7 +396,7 @@ workflow {
run_details_file = save_run_details.out.run_details

combine_file_hashes(fasta, spectral_library,
search_file_hashes,
search_file_stats,
final_skyline_file,
final_skyline_hash,
skyline_reports_ch,
Expand Down

0 comments on commit 6274fc2

Please sign in to comment.