Skip to content

Commit

Permalink
pseudobulk bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mvfki committed Nov 16, 2023
1 parent 6913caf commit a17d1e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/DEG_marker.R
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ makePseudoBulk2 <- function(mat, replicateAnn, verbose = TRUE) {
design = formula("~groups")
)
des <- DESeq2::DESeq(des, test = "Wald", quiet = !verbose)
res <- DESeq2::results(des)
res <- DESeq2::results(des, contrast = c("groups", levels(groups)[1],
levels(groups)[2]))
res <- as.data.frame(res)
res$feature <- rownames(res)
rownames(res) <- NULL
Expand Down

0 comments on commit a17d1e0

Please sign in to comment.