limma package, using a covariate?
0
0
Entering edit mode
@alasaari-jukka-6176
Last seen 9.6 years ago
Hello, I have Illumina 450k methylation data sets for 20 males (10 cases and 10 controls) and 20 females (10 cases and 10 controls), which I have been analyzing separately using MINFI and LIMMA. The phenotype that defines the cases and controls is the same for both data sets. Is there any way to combine both data sets into one and analyze differential methylation using sex as a covariate (with LIMMA)? Here is the script that I am using: dat <- read.450k.exp(base=basedir) targets <- read.table("target.txt", sep="\t", header=T, as.is=T) swan <- preprocessSWAN(dat2) M <- getM(swan) des <- model.matrix(~-1+targets2$Status) colnames(des) <- c("CASE","CONTROL") cont <- makeContrasts(CASE-CONTROL, levels=des) fit <- lmFit(M, des) fit2 <- eBayes(contrasts.fit(fit, cont)) vennDiagram(decideTests(fit2, p.value=0.001, adjust.method="BH")) Thanks a lot in advance! Best regards, Jukka MSc [[alternative HTML version deleted]]
limma minfi limma minfi • 1.0k views
ADD COMMENT

Login before adding your answer.

Traffic: 427 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6