Closed bioinfonext closed 5 months ago
Hello,
Like the manual says, the formulation of the design matrix is identical to that of limma. So yes, you can use the same design matrix (though it will fit using eBayes()
with trend=FALSE
and robust=FALSE
).
You've already specified coef=2
, so you don't need a contrast matrix. contrasts=FALSE
by default and doesn't need to be specified in this instance.
You should specify analysis.type="differential"
whenever you specify a value for coef
, even when the response variable is continuous (like with BMI).
Best, Tim
Dear Tim, thank you so much for you response. I have also updated my DMRcate code above. Could you please suggest how to filter significant DMR and then how to plot these.
Hi there,
All the DMRs in results.ranges
should be "significant" since they are indexed at the rate you specified with fdr
to cpg.annotate()
. As an extra level of filtering, the DMRs are ranked by Fisher's statistic (under the Fisher
column in results.ranges
) so you can take the top ones from there.
DMR.plot()
is there for you to plot your DMRs, please read the manual for details.
Cheers, Tim
Thanks Tim, I want to plot DMR 1 for those individual who has eGFR above 60 and who has eGFR below 60 but I don't have any column in my phenotype file so can I still able to plot these or should I first make a column in phenotype file and could you also help according to above code what should I mention here:CpGs=getBeta( )
DMR.plot(ranges=results.ranges1, dmr=1, CpGs=getBeta(GRSet.norm.na.good.noSnp.noXreact), what="Beta", arraytype = "EPIC", phen.col=cols, genome="hg19")
Hello,
A number of things here.
1) Wouldn't your logeGFR
vector be the phenotype column you're looking for?
2) Your argument to CpGs
should ideally be the same argument you gave to cpg.annotate()
, so in this case, use CpGs=myMs.noSNPs, what="M"
3) It sounds like you want to binarise your response variable for plotting, try this:
eGFR_binarised <- ifelse(logeGFR > 60, "eGFRhi", "eGFRlo")
groups <- c(eGFRhi="magenta", eGFRlo="forestgreen")
cols <- groups[as.character(eGFR_binarised)]
DMR.plot(ranges=results.ranges1, dmr=1, CpGs=myMs.noSNPs, what="M", arraytype = "EPIC", phen.col=cols, genome="hg19")
Cheers, Tim
Hi, I am trying to use DMRcate first time for epic array data.
I have done the limma association analysis using below model design but not sure how to design model metrix for DMRcate for same type of BMI and CpG sites association analysis; Could you help me if below DMRcate design correct or wrong?
Many thanks