Skip to content

Commit

Permalink
avoiding wrong cbinds
Browse files Browse the repository at this point in the history
  • Loading branch information
atuldeshpande committed May 20, 2024
1 parent 86729d5 commit 5868616
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/local/spacemarkers.nf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ process SPACEMARKERS {
dataMatrix <- dataMatrix[keepGenes,]
coords <- load10XCoords("$data");
rownames(coords) <- coords$barcode;
features <- getSpatialFeatures("$cogapsResult");
spPatterns <- cbind(coords, features);
barcodes <- intersect(rownames(features), rownames(coords))
spPatterns <- cbind(coords[barcodes,], features[barcodes,]);
saveRDS(spPatterns, file = "${prefix}/spPatterns.rds");
Expand Down

0 comments on commit 5868616

Please sign in to comment.