champ.GSEA {ChAMP} | R Documentation |
New Modification: We adaptted gometh method as default function to do GSEA while correcting bias caused by inequality number of CpGs on each genes. Previously, we used goseq package to do this. gometh function for missMethyl package also used the idea of goseq but implemented totally different from goseq function. The idea of gometh is firstly fit a line between probability that a gene would be choosed as significant differential genes, and numbers of CpGs enriched in these genes. Then the probability would be fixed while doing GSEA. For more details user may refer missMethyl package. This function would do GSEA on the results of champ functions like DMP and DMR. However users may also add individual CpGs and genes in it. There are two method are incoporated into champ.GSEA function here. One is old Fisher Exact Test method, which will used information downloaded from MSigDB and do fisher exact test to calculated the enrichment status for each pathways. And the other is "gometh" method, which will use missMethyl package to correct the inequality between number of genes and number of CpGs, then do GSEA. User may assign parameter "method" as "gometh" or "fisher" to choose which method they want to use.
champ.GSEA(beta=myNorm, DMP=myDMP[[1]], DMR=myDMR, CpGlist=NULL, Genelist=NULL, method="fisher", arraytype="450K", Rplot=TRUE, adjPval=0.05)
beta |
A matrix of values representing the methylation scores for each sample (M or B). Better to be imputed and normalized data. (default = myNorm) |
DMP |
Results from champ.DMP() function. (default = myDMP) |
DMR |
Results from champ.DMR() function. (default = myDMR) |
CpGlist |
Apart from previous parameters, if you have any other CpGs list want to do GSEA, you can input them here as a list. (default = NULL) |
Genelist |
Apart from previous parameters, if you have any other Gene list want to do GSEA. you can inpute them here as a list. (default = NULL) |
method |
Which method would be used to do GSEA?"gometh" or "fisher". (default = "gometh") |
arraytype |
Which kind of array your data set is? (default = "450K") |
Rplot |
If gometh method was chosen, should Probability Weight plot will be plotted. More information please check gometh package. (default = TRUE) |
adjPval |
Adjusted p value cutoff for all calculated GSEA result. (default = 0.05) |
For fisher Method:
Genelist |
List of pathway we get by enriching genes onto annotation database. |
nOVLAP |
Number of genes overlapped in your significant gene list and annotated pathways. |
OR |
Odds Ratio calculated for each enrichment. |
P-value |
Significance calculated from fisher exact test. |
adjPval |
Adjusted P value from "BH" method. |
Genes |
Name of genes enriched in each pathway. |
For gometh method, the returned value are:
category |
GO pathway's index. |
over_represented_pvalue |
The p value for genes' over representing in this pathway. |
under_represented_pvalue |
The p value for genes' under representing in this pathway.(Not likely to be used) |
numDEInCat |
Numbers of Different Methylation Genes in this pathway. |
numInCat |
Numbers of all genes related to this pathway. |
term |
The short explaination for this pathway. |
ontology over_represented_adjPvalue |
The ajusted over representing p value with "BH" method. User may used this one to select qualitied Pathways. |
Yuan Tian
## Not run: myLoad <- champ.load(directory=system.file("extdata",package="ChAMPdata")) myNorm <- champ.norm() myDMP <- champ.DMP() myDMR <- champ.DMR() myGSEA <- champ.GSEA() ## End(Not run)