Skip to content
Snippets Groups Projects
Commit 7724df73 authored by Luke Zappia's avatar Luke Zappia
Browse files

Fix error in simulating batches

Problem using factor to index matrix
parent 779ff32f
No related branches found
No related tags found
No related merge requests found
......@@ -356,8 +356,8 @@ splatSimBatchCellMeans <- function(sim, params) {
batch.names <- unique(batches)
batch.facs.gene <- rowData(sim)[, paste0("BatchFac", batch.names)]
batch.facs.cell <- as.matrix(batch.facs.gene[, factor(batches)])
batch.facs.cell <- as.matrix(batch.facs.gene[,
as.numeric(factor(batches))])
} else {
nCells <- getParam(params, "nCells")
nGenes <- getParam(params, "nGenes")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment