Skip to content

Commit

Permalink
Trying to fix again pseudobulk.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiez committed Jul 18, 2024
1 parent 1e64649 commit 81276c7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions R/pseudobulk.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ pseudobulk.Seurat <- function(x, split.by, group.by, samples=NULL, genes=NULL, a
})
names(xl) <- group_levels

if (is.null(samples)) {
samples <- x[[]][[group.by]]
if (!is.factor(samples))
samples <- factor(samples)
samples <- levels(samples)
samples <- data.frame(row.names=samples)
}
# if (is.null(samples)) {
# samples <- x[[]][[group.by]]
# if (!is.factor(samples))
# samples <- factor(samples)

# samples <- levels(samples)
# samples <- data.frame(row.names=samples)
# }

xl <- lapply(xl, function(x) {
if (packageVersion("Seurat") >= "5.0.0")
Expand Down

0 comments on commit 81276c7

Please sign in to comment.