Skip to content

Commit

Permalink
Merge pull request #94 from yerkes-gencore/devel
Browse files Browse the repository at this point in the history
avoid expensive conversion from sparse matrix
  • Loading branch information
derrik-gratz authored Feb 12, 2024
2 parents db888d5 + 6d9395a commit 5ddfcb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/gcoreVlnPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ gcoreVlnPlot <- function(obj,
stop('No genes found to plot data for!')
}
genes <- good_genes
mat_to_plot <- reshape2::melt(as.matrix(obj@assays[[assay]]@data)[genes,])
mat_to_plot <- reshape2::melt(as.matrix(obj@assays[[assay]]@data[genes,]))
if (length(genes) == 1) {
mat_to_plot$Var2 <- rownames(mat_to_plot)
}
Expand Down

0 comments on commit 5ddfcb0

Please sign in to comment.