Skip to content

Commit

Permalink
Merge pull request #62 from alyosama/package
Browse files Browse the repository at this point in the history
Fixing F-distribution degree of freedom bug
  • Loading branch information
JEFworks authored Nov 4, 2024
2 parents 7b0e0a4 + b5f69b2 commit 1d3bcca
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 <- ncol(mat)
n.obs <- nrow(mat)
n.cells <- nrow(mat)
n.obs <- ncol(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 1d3bcca

Please sign in to comment.