Skip to content

Commit

Permalink
Fix cbind error to create timecourseTable
Browse files Browse the repository at this point in the history
MengjunWu#1. Revise for cbind error when initialize with old code
MengjunWu#2. Make `matrix` function to initialize `tc` variable
  • Loading branch information
mdsung authored Nov 3, 2022
1 parent 63c7674 commit 557cac4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/timecourseTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ timecourseTable <- function(object, value = "expression", lib.norm = TRUE,
tc <- as.data.frame(sapply(unique(names(tc)), function(col) rowMeans(tc[names(tc) == col])))
}
if (value == "FC") {
tc <- NULL
group1 <- group[1]
tc <- cbind(tc, rep(0, length(genointerval[, 1])))
group2 <- group[group != group1]
tc <- matrix(0, nrow = dim(genointerval)[1])
t <- DBresult(object, group1 = group1, group2 = group2,
top.sig = FALSE, result.type = "list")
t <- as(t, "list")
Expand Down

0 comments on commit 557cac4

Please sign in to comment.