Skip to content

Commit

Permalink
re-added celranger-arc backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalmeida committed Apr 30, 2024
1 parent 6a7d203 commit 900606f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions subworkflows/local/mtx_conversion.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ workflow MTX_CONVERSION {
main:
ch_versions = Channel.empty()

// Cellranger module output contains too many files which cause path collisions, we filter to the ones we need.
// Keeping backwards compatibility with cellranger-arc.
// TODO: Adapt cellranger-arc subworkflow like cellranger to remove this snippet here.
if (params.aligner in [ 'cellrangerarc' ]) {
mtx_matrices = mtx_matrices.map { meta, mtx_files ->
[ meta, mtx_files.findAll { it.toString().contains("filtered_feature_bc_matrix") } ]
}
.filter { meta, mtx_files -> mtx_files } // Remove any that are missing the relevant files
}

//
// Convert matrix to h5ad
//
Expand Down

0 comments on commit 900606f

Please sign in to comment.