Hi, I download methylation data and gene expression data from TCGA by MethylMix. After Processing,I got the matrix of toSave$METcancer different from METcancer ,a small demo data sets from TCGA of gliobastoma. The rownames of demo data set are gene symbol ,however the rownames of my toSave$METcancer are "gene symbol---Cluster1".
MethylMixResults <- MethylMix(toSave$METcancer, toSave$GEcancer, toSave$METnormal)
Then, by MethylMix,I could not get the correct results.
library(doParallel)
library(MethylMix)
cancerSite <- "CHOL"
cancerSite <- "CHOL"
setwd("/home_extend/u1419/ cholangiocarcinoma")
targetDirectory <- paste0(getwd(), "/")
cl <- makeCluster(5)
registerDoParallel(cl)
# # Downloading methylation data
METdirectories <- Download_DNAmethylation(cancerSite, targetDirectory)
# # Processing methylation data
METProcessedData <- Preprocess_DNAmethylation(cancerSite, METdirectories)
# # Saving methylation processed data
saveRDS(METProcessedData, file = paste0(targetDirectory, "MET_", cancerSite, "_Processed.rds"))
# # Downloading gene expression data
GEdirectories <- Download_GeneExpression(cancerSite, targetDirectory)
# # Processing gene expression data
GEProcessedData <- Preprocess_GeneExpression(cancerSite, GEdirectories)
# # Saving gene expression processed data
saveRDS(GEProcessedData, file = paste0(targetDirectory, "GE_", cancerSite, "_Processed.rds"))
METProcessedData <- readRDS(paste0(targetDirectory, "MET_", cancerSite, "_Processed.rds"))
res <- ClusterProbes(METProcessedData[[1]], METProcessedData[[2]])
toSave <- list(METcancer = res[[1]], METnormal = res[[2]], GEcancer = GEProcessedData[[1]],
GEnormal = GEProcessedData[[2]], ProbeMapping = res$ProbeMapping)
head(toSave$METcancer)[,1:5]
TCGA-3X-AAV9 TCGA-3X-AAVA TCGA-3X-AAVB TCGA-3X-AAVC TCGA-3X-AAVE
A1BG---Cluster1 0.5256615 0.4655586 0.5651652 0.4859289 0.6592752
A1BG---Cluster2 0.1692925 0.5620878 0.4360619 0.0345946 0.1778778
A1CF---Cluster1 0.7549405 0.5252172 0.5765410 0.3852516 0.5877026
A1CF---Cluster2 0.5291152 0.8943637 0.3479129 0.6873616 0.4107920
A1CF---Cluster3 0.6235495 0.9174264 0.7459019 0.7928292 0.6816474
A2BP1---Cluster1 0.7586256 0.6098513 0.7930285 0.7406754 0.7633507
MethylMixResults <- MethylMix(toSave$METcancer, toSave$GEcancer, toSave$METnormal)`
I appreciate if you share your comment with me.
Best Regards,
Ganxun Li
Hi pbpanigrahi
Thanks for the response. How can I get the methylation level of one gene, such as A1BG, by calculating the average of the methylation level of different clusters of A1BG ?
Best,
Ganxun Li