Skip to content

Commit

Permalink
Fix null model object names
Browse files Browse the repository at this point in the history
  • Loading branch information
gaow committed Mar 18, 2024
1 parent 134d889 commit 29d49d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mash_regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ MashInitializer <- R6Class("MashInitializer",
if (!all(xUlist[[1]] == 0)) {
xUlist <- c(
list(null_model = matrix(0, nrow(xUlist[[1]]), ncol(xUlist[[1]]),
dimnames = list(rownames = rownames(xUlist[[1]]), colnames = colnames(xUlist[[1]]))
dimnames = list(rownames(xUlist[[1]]),colnames(xUlist[[1]]))
)),
xUlist
)
Expand Down Expand Up @@ -373,7 +373,7 @@ MashInitializer <- R6Class("MashInitializer",
}
prior_weights <- prior_weights / sum(prior_weights)
private$xU <- list(
pi = c(null_model = null_weight, prior_weights * (1 - null_weight)),
pi = setNames(c(null_weight, prior_weights * (1 - null_weight)), names(xUlist)),
xUlist = xUlist
)

Expand Down

0 comments on commit 29d49d7

Please sign in to comment.