Description Usage Arguments Value Author(s) Examples

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.

1 2 3 4 5 6 7 8 9 | ```
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:

`Block` |
A data.frame contains all detected Blocks, with colnames as chr, start, end, value, area, cluster, indexStart, indexEnd, L, clusterL, p.value, fwer, p.valueArea, fwerArea. The result format is actually the same as Bumphunter, you may refer to Bumphunter packages to get more explaination about the result. |

`clusterInfo` |
When champ.Block() detection significant Blocks, a group of candidate Blocks would be detected out at first, this is the data frame of all candidate Blocks. The "TRUE" Blocks in above value are located in these candidate Blocks. |

`allCLID.v` |
The first step of detectiong methylation Blocks is to get each probes into a cluster(region). This value is the clustering result of each probes. |

`avbetaCL.m` |
The beta matrix for each cluster. The value is calculated by taking mean value of all probes located in each cluster. |

`posCL.m` |
Position of each cluster, which is calculated by average all probes' position in each cluster. |

`adjPval` |
P value cutoff for calculated GSEA results. (default = 0.05) |

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

1 2 3 4 5 6 7 8 | ```
## 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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.