Skip to content

Commit

Permalink
fix bug in predictSmooth #237
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvandenberge committed Sep 19, 2023
1 parent ed2e8d6 commit 38221e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: tradeSeq
Type: Package
Title: trajectory-based differential expression analysis for sequencing data
Date: 2019-03-17
Version: 1.13.01
Version: 1.13.02
Authors@R: c(person("Koen", "Van den Berge", role = c("aut"),
email = "[email protected]"),
person("Hector", "Roux de Bezieux", role = c("aut", "cre"),
Expand Down
2 changes: 1 addition & 1 deletion R/fitGAM.R
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ setMethod(f = "fitGAM",
#' @rdname fitGAM
#' @importClassesFrom Matrix dgCMatrix
setMethod(f = "fitGAM",
signature = c(counts = "dgCMatrix"),
signature = c(counts = "generalMatrix"),
definition = function(counts,
sds = NULL,
pseudotime = NULL,
Expand Down
4 changes: 2 additions & 2 deletions R/predictSmooth.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ setOldClass("gam")
yhatMat <- matrix(NA, nrow = length(gene), ncol = nCurves * nConditions * nPoints)
rownames(yhatMat) <- gene
pointNames <- expand.grid(1:nCurves, 1:nConditions)
baseNames <- paste0("lineage", pointNames[,1], "_condition",
levels(conditions)[pointNames[,2]])
baseNames <- paste0("lineage", rep(1:nCurves, each=nConditions), "_condition",
levels(conditions)[rep(1:nConditions, nCurves)])
colnames(yhatMat) <- c(sapply(baseNames, paste0, "_point",1:nPoints))
for (jj in 1:length(gene)) {
yhat <- c(exp(t(Xall %*% t(beta[as.character(gene[jj]), ,
Expand Down

0 comments on commit 38221e3

Please sign in to comment.