# load the three data sets needed for MethylMix
data(METcancer)
data(METnormal)
data(MAcancer)
# run methylmix on a small set of example data
MethylMixResults=MethylMix(METcancer,METnormal,MAcancer)
# Plot the most famous methylated gene for glioblastoma
MethylMix_PlotModel('MGMT',METcancer,MethylMixResults)
# plot MGMT also with its normal methylation variation
MethylMix_PlotModel('MGMT',METcancer,MethylMixResults,MAdata=0,METnormal)
# plot a MethylMix model for another gene
MethylMix_PlotModel('ZNF217',METcancer,MethylMixResults,MAdata=0,METnormal)
# also plot the inverse correlation with gene expression
# this creates two separate plots
MethylMix_PlotModel('MGMT',METcancer,MethylMixResults,MAdata=MAcancer)
# plot all functional and differential genes
for (i in 1:length(MethylMixResults$MethylationDrivers)) {
MethylMix_PlotModel(MethylMixResults$MethylationDrivers[i],METcancer,
MethylMixResults,MAdata=0,METnormal)
}
Run the code above in your browser using DataLab