Skip to content

Commit

Permalink
add warning for libraries not included in merging
Browse files Browse the repository at this point in the history
  • Loading branch information
allyhawkins committed May 1, 2024
1 parent 41738f0 commit 854bb93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions merge.nf
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@ workflow {
log.warn("Not merging ${it.project_id} because it contains multiplexed libraries.")
}

// print out warning message for any libraries not included in merging
merge_libaries = filtered_libraries_ch
.collect{it.library_id}
libraries_ch
.filter{!(it.library_id in merge_libaries.getVal())}
.subscribe{
log.warn("Processed files do not exist for ${it.library_id}. This library will not be included in the merged object.")
}

grouped_libraries_ch = filtered_libraries_ch.single_sample
// create tuple of [project id, library_id, processed_sce_file]
.map{[
Expand Down

0 comments on commit 854bb93

Please sign in to comment.