git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MineICA@73179 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,61 @@ |
1 |
+\name{writeGostatsHtmltable} |
|
2 |
+\alias{writeGostatsHtmltable} |
|
3 |
+\title{Writes enrichment results in a HTML file} |
|
4 |
+\usage{ |
|
5 |
+ writeGostatsHtmltable(d, label, side = "both", db, file, |
|
6 |
+ cutoff = 3) |
|
7 |
+} |
|
8 |
+\arguments{ |
|
9 |
+ \item{d}{A data.frame describing enrichment results, |
|
10 |
+ output of function \code{\link[Category]{hyperGTest}}} |
|
11 |
+ |
|
12 |
+ \item{label}{The label of the data the results originate |
|
13 |
+ from} |
|
14 |
+ |
|
15 |
+ \item{side}{The side of the component used for enrichment |
|
16 |
+ analysis} |
|
17 |
+ |
|
18 |
+ \item{db}{The database used ("GO" or "KEGG")} |
|
19 |
+ |
|
20 |
+ \item{file}{File name for output} |
|
21 |
+ |
|
22 |
+ \item{cutoff}{The threshold used to select the genes used |
|
23 |
+ to run the enrichment analysis} |
|
24 |
+} |
|
25 |
+\value{ |
|
26 |
+ NULL |
|
27 |
+} |
|
28 |
+\description{ |
|
29 |
+ This function takes as input in argument \code{d} the |
|
30 |
+ output of function \code{\link{addGenesToGoReport}} whose |
|
31 |
+ goal is to add genes included in gene sets detected as |
|
32 |
+ significantly enriched by |
|
33 |
+ \code{\link[Category]{hyperGTest}} function. It writes |
|
34 |
+ the enrichment results in an HTML file which redirects |
|
35 |
+ each gene set ID to its web-description and each gene to |
|
36 |
+ its Gene Card web-page. |
|
37 |
+} |
|
38 |
+\examples{ |
|
39 |
+hgOver <- structure(list(GOBPID = c("GO:0003012", "GO:0030049"), |
|
40 |
+ Pvalue = c(1.70848789161935e-10, 6.62508415367712e-05), |
|
41 |
+ OddsRatio = c(22.1043956043956, 26.4190476190476), |
|
42 |
+ ExpCount = c(1.19549929676512, 0.246132208157525), |
|
43 |
+ Count = c(12L, 4L), Size = c(68L, 14L), |
|
44 |
+ Term = c("muscle system process", "muscle filament sliding"), |
|
45 |
+ In_geneSymbols = c("ACTA2,ACTC1,ACTG2,CASQ2,CNN1,DES,MYH3,MYLK,PTGS1,TPM2,MYL9,LMOD1","ACTC1,DES,MYH3,TPM2")), |
|
46 |
+ .Names = c("GOBPID", "Pvalue", "OddsRatio", "ExpCount", "Count", "Size", "Term", "In_geneSymbols"), |
|
47 |
+ class = "data.frame", row.names=1:2) |
|
48 |
+ |
|
49 |
+MineICA:::writeGostatsHtmltable(d=hgOver, label="Example of enrichment analysis", db="KEGG", |
|
50 |
+ file="outputHyper_example.htm") |
|
51 |
+} |
|
52 |
+\author{ |
|
53 |
+ Anne Biton |
|
54 |
+} |
|
55 |
+\seealso{ |
|
56 |
+ \code{\link[xtable]{xtable}}, |
|
57 |
+ \code{\link{addGenesToGoReport}}, |
|
58 |
+ \code{\link[Category]{hyperGTest}} |
|
59 |
+} |
|
60 |
+\keyword{internal} |
|
61 |
+ |