Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cellrangerarc snippet back #321

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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