Skip to content

Commit

Permalink
Revert "Fixing F-distribution degree of freedom bug"
Browse files Browse the repository at this point in the history
  • Loading branch information
JEFworks authored Nov 4, 2024
1 parent 1d3bcca commit 5c7dac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/import.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ getOverdispersedGenes <- function(counts,
}
df$res <- -Inf
df$res[vi] <- resid(m,type='response')
n.cells <- nrow(mat)
n.obs <- ncol(mat)
n.cells <- ncol(mat)
n.obs <- nrow(mat)
df$lp <- as.numeric(pf(exp(df$res),n.obs,n.obs,lower.tail=FALSE,log.p=TRUE))
df$lpa <- bh.adjust(df$lp,log=TRUE)
df$qv <- as.numeric(qchisq(df$lp, n.cells-1, lower.tail = FALSE,log.p=TRUE)/n.cells)
Expand Down

0 comments on commit 5c7dac8

Please sign in to comment.