Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into 247-support-for-10x-ff…
Browse files Browse the repository at this point in the history
…pe-scrna
  • Loading branch information
grst committed May 15, 2024
2 parents dc63ae3 + 7be5e57 commit 9bff0b5
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 9bff0b5

Please sign in to comment.