Skip to content

Commit

Permalink
handle factors
Browse files Browse the repository at this point in the history
  • Loading branch information
perishky committed May 24, 2016
1 parent 679f644 commit 72c21c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/cell-type-specific-methylation.r
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ meffil.cell.type.specific.methylation <- function(beta, cell.types, number.sites
stopifnot(number.sites > 0 && number.sites < nrow(beta))

number.cell.types <- length(unique(cell.types))
cell.types <- as.character(cell.types)
design <- model.matrix(~ 0 + cell.types)

msg("fitting linear model with limma::lmFit", verbose=verbose)
Expand Down

0 comments on commit 72c21c1

Please sign in to comment.