Skip to content

Commit

Permalink
make sure that processed file isn't empty
Browse files Browse the repository at this point in the history
  • Loading branch information
allyhawkins committed May 1, 2024
1 parent 6d1fc1d commit 41738f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions merge.nf
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ workflow {
it.library_id,
file("${params.results_dir}/${it.project_id}/${it.sample_id}/${it.library_id}_processed.rds")
]}
// only include libraries that have been processed through scpca-nf
.filter{file(it[2]).exists()}
// only include libraries that have been processed through scpca-nf and aren't empty
.filter{file(it[2]).exists() && file(it[2]).size() > 0}
// only one row per library ID, this removes all the duplicates that may be present due to CITE/hashing
.unique()
// group tuple by project id: [project_id, [library_id1, library_id2, ...], [sce_file1, sce_file2, ...]]
Expand Down

0 comments on commit 41738f0

Please sign in to comment.