This report has goseq results for 30 minute glucose when:

  1. Top 1000 genes are marked as differentially expressed
  2. Top genes with positive effect in top 1000 overall genes are marked as differentially expressed
  3. Top genes with negative effect in top 1000 overall genes are marked as differentially expressed

This report was generated on June 21 2015

Goseq results also saved in csv files located on snowwhite in directory: /net/snowwhite/home/beckandy/tissue/datafreeze4/goseq/jun3/12junReps/csv

Step 1: Load in all the necessary data/libraries

library(goseq)
## Loading required package: BiasedUrn
## Loading required package: geneLenDataBase
## Loading required package: DBI
library(qvalue)

fName <- "/net/snowwhite/home/beckandy/tissue/datafreeze4/goseq/traits/peer_k00_GL30_all_genes.txt"
outFile <- "GL30"

data <- read.table(fName, as.is=T, header=T)

gene_length_file <- "/net/snowwhite/home/beckandy/tissue/datafreeze4/goseq/jun3/length.composite.gene.models.gencode.v19"
gene_lengths = read.table(gene_length_file, header=T, as.is=T);
gene_lengths$gene = sapply(gene_lengths$gene, function(x){ unlist(strsplit(x, split="[.]"))[1] });

data$gene <- sapply(data$gene, function(x){ unlist(strsplit(x, split="[.]"))[1] });

data <- merge(data, gene_lengths, by="gene", all.x=T)
data <- data[order(data$p.value),]
data$q.value <- qvalue(data$p.value)$qvalues
data$rank <- seq(1,length(data[,1]))

minRow <- 20

Step 2: Create genes vectors

The first vector simply marks the top 1000 genes as differentially expressed. The second and third vectors mark the genes with positive or negative effect in the top 1000 as differentially expressed.

genes <- as.numeric(data$rank <= 1000)
genesPos <- as.numeric(data$rank <= 1000 & data$effect > 0)
genesNeg <- as.numeric(data$rank <= 1000 & data$effect < 0)

names(genes) <- data$gene
names(genesPos) <- data$gene
names(genesNeg) <- data$gene

There are 268 DE genes with postive effect and 732 DE genes with negative effect.

Step 3: PWFs

pwf <- nullp(genes,"hg19","ensGene",bias.data=data$length, plot.fit=FALSE)
pwfPos=nullp(genesPos,"hg19","ensGene",bias.data=data$length, plot.fit=FALSE)
pwfNeg=nullp(genesNeg,"hg19","ensGene",bias.data=data$length, plot.fit=FALSE)

Step 4: run goseq

go <- goseq(pwf,"hg19","ensGene",test.cats=c("GO:BP"))
goPos <- goseq(pwfPos,"hg19","ensGene",test.cats=c("GO:BP"))
goNeg <- goseq(pwfNeg,"hg19","ensGene",test.cats=c("GO:BP"))

rownames(go) <- NULL
rownames(goPos) <- NULL
rownames(goNeg) <- NULL

# Fix problem with some p-values being slightly more than 1
go$over_represented_pvalue[go$over_represented_pvalue>1]=1;
go$under_represented_pvalue[go$under_represented_pvalue>1]=1;
goPos$over_represented_pvalue[goPos$over_represented_pvalue>1]=1;
goPos$under_represented_pvalue[goPos$under_represented_pvalue>1]=1;
goNeg$over_represented_pvalue[goNeg$over_represented_pvalue>1]=1;
goNeg$under_represented_pvalue[goNeg$under_represented_pvalue>1]=1;

go$q.value <- qvalue(go$over_represented_pvalue)$qvalues
goPos$q.value=qvalue(goPos$over_represented_pvalue)$qvalues
goNeg$q.value=qvalue(goNeg$over_represented_pvalue)$qvalues

go$q.value2 <- qvalue(go$under_represented_pvalue)$qvalues
goPos$q.value2=qvalue(goPos$under_represented_pvalue)$qvalues
goNeg$q.value2=qvalue(goNeg$under_represented_pvalue)$qvalues

go <- go[which(go$numInCat < 1000),]
goPos <- goPos[which(goPos$numInCat < 1000),]
goNeg <- goNeg[which(goNeg$numInCat < 1000),]

Top 1000 Results

Over enriched categories (52)

rowN <- max(minRow, sum(go$q.value<=0.05))
cat(kable(go[1:rowN,c("category","term","numInCat","numDEInCat","q.value")],format="html"));
category term numInCat numDEInCat q.value
1 GO:0045333 cellular respiration 158 43 0.0000000
2 GO:0022904 respiratory electron transport chain 105 33 0.0000000
3 GO:0022900 electron transport chain 106 33 0.0000000
4 GO:0006091 generation of precursor metabolites and energy 394 66 0.0000000
5 GO:0015980 energy derivation by oxidation of organic compounds 319 57 0.0000000
6 GO:1902600 hydrogen ion transmembrane transport 84 26 0.0000000
7 GO:0055114 oxidation-reduction process 896 103 0.0000000
8 GO:0015992 proton transport 112 26 0.0000001
9 GO:0006818 hydrogen transport 114 26 0.0000002
10 GO:0006119 oxidative phosphorylation 70 20 0.0000003
11 GO:0042773 ATP synthesis coupled electron transport 54 17 0.0000008
12 GO:0042775 mitochondrial ATP synthesis coupled electron transport 54 17 0.0000008
14 GO:0015985 energy coupled proton transport, down electrochemical gradient 19 10 0.0000064
15 GO:0015986 ATP synthesis coupled proton transport 19 10 0.0000064
16 GO:0006120 mitochondrial electron transport, NADH to ubiquinone 42 14 0.0000076
17 GO:0009145 purine nucleoside triphosphate biosynthetic process 47 14 0.0000766
18 GO:0006164 purine nucleotide biosynthetic process 191 30 0.0001305
19 GO:0009152 purine ribonucleotide biosynthetic process 185 29 0.0002028
20 GO:0009260 ribonucleotide biosynthetic process 198 30 0.0002669
21 GO:0009201 ribonucleoside triphosphate biosynthetic process 52 14 0.0002669
22 GO:0009206 purine ribonucleoside triphosphate biosynthetic process 46 13 0.0003289
23 GO:0046390 ribose phosphate biosynthetic process 201 30 0.0003289
24 GO:0072522 purine-containing compound biosynthetic process 204 30 0.0004286
25 GO:0009142 nucleoside triphosphate biosynthetic process 63 15 0.0005385
26 GO:0006754 ATP biosynthetic process 36 11 0.0008212
27 GO:0015672 monovalent inorganic cation transport 350 42 0.0008561
28 GO:0042776 mitochondrial ATP synthesis coupled proton transport 14 7 0.0013437
31 GO:0055085 transmembrane transport 992 87 0.0061535
32 GO:0034220 ion transmembrane transport 658 63 0.0066756
33 GO:0009165 nucleotide biosynthetic process 259 32 0.0066756
34 GO:0009127 purine nucleoside monophosphate biosynthetic process 61 13 0.0066756
35 GO:0009168 purine ribonucleoside monophosphate biosynthetic process 61 13 0.0066756
36 GO:1901293 nucleoside phosphate biosynthetic process 260 32 0.0067356
37 GO:0042451 purine nucleoside biosynthetic process 88 16 0.0068320
38 GO:0046129 purine ribonucleoside biosynthetic process 88 16 0.0068320
39 GO:1901566 organonitrogen compound biosynthetic process 586 57 0.0092848
40 GO:0009156 ribonucleoside monophosphate biosynthetic process 73 14 0.0108235
41 GO:0042455 ribonucleoside biosynthetic process 102 17 0.0122677
42 GO:0098662 inorganic cation transmembrane transport 397 42 0.0137134
44 GO:0009161 ribonucleoside monophosphate metabolic process 478 48 0.0163737
45 GO:0009167 purine ribonucleoside monophosphate metabolic process 466 47 0.0168101
46 GO:0098655 cation transmembrane transport 467 47 0.0168101
47 GO:0009126 purine nucleoside monophosphate metabolic process 467 47 0.0168101
48 GO:0001525 angiogenesis 350 38 0.0168101
49 GO:0046034 ATP metabolic process 442 45 0.0177740
50 GO:0098660 inorganic ion transmembrane transport 457 46 0.0183722
51 GO:0034375 high-density lipoprotein particle remodeling 10 5 0.0217231
52 GO:0009123 nucleoside monophosphate metabolic process 489 48 0.0230408
53 GO:0009124 nucleoside monophosphate biosynthetic process 80 14 0.0230408
54 GO:0009163 nucleoside biosynthetic process 111 17 0.0271354
55 GO:1901659 glycosyl compound biosynthetic process 112 17 0.0299692
56 GO:0043691 reverse cholesterol transport 11 5 0.0406965

Under enriched (0)

go <- go[order(go$under_represented_pvalue),]
rowN <- max(minRow, sum(go$q.value2<=0.05))
cat(kable(go[1:rowN,c("category","term","numInCat","numDEInCat","q.value2")],format="html"));
category term numInCat numDEInCat q.value2
5421 GO:0002252 immune effector process 504 12 0.9359396
5422 GO:0045088 regulation of innate immune response 243 3 0.9359396
5418 GO:0006397 mRNA processing 404 9 0.9359396
5417 GO:0006396 RNA processing 676 20 0.9359396
5420 GO:0002697 regulation of immune effector process 231 3 1.0000000
5415 GO:0050776 regulation of immune response 666 20 1.0000000
5413 GO:0031347 regulation of defense response 462 12 1.0000000
5419 GO:0040029 regulation of gene expression, epigenetic 143 1 1.0000000
5409 GO:0050778 positive regulation of immune response 441 12 1.0000000
5405 GO:0045087 innate immune response 724 24 1.0000000
9525 GO:0002831 regulation of response to biotic stimulus 97 0 1.0000000
5412 GO:0045089 positive regulation of innate immune response 196 3 1.0000000
10726 GO:0070646 protein modification by small protein removal 93 0 1.0000000
5403 GO:0002521 leukocyte differentiation 353 9 1.0000000
9811 GO:0016458 gene silencing 92 0 1.0000000
5393 GO:0002253 activation of immune response 373 10 1.0000000
9435 GO:0001841 neural tube formation 90 0 1.0000000
5391 GO:0070925 organelle assembly 319 8 1.0000000
5385 GO:0006281 DNA repair 393 11 1.0000000
5376 GO:0034622 cellular macromolecular complex assembly 583 19 1.0000000

Positive Effect

Over enriched categories (0)

rowN <- max(minRow, sum(goPos$q.value<=0.05))
cat(kable(goPos[1:rowN,c("category","term","numInCat","numDEInCat","q.value")],format="html"));
category term numInCat numDEInCat q.value
1 GO:0051005 negative regulation of lipoprotein lipase activity 3 2 1
2 GO:0006333 chromatin assembly or disassembly 110 7 1
3 GO:0032025 response to cobalt ion 5 2 1
4 GO:0048102 autophagic cell death 6 2 1
5 GO:0034728 nucleosome organization 95 6 1
6 GO:0070601 centromeric sister chromatid cohesion 5 2 1
8 GO:0006108 malate metabolic process 7 2 1
9 GO:2000480 negative regulation of cAMP-dependent protein kinase activity 6 2 1
10 GO:0070830 tight junction assembly 39 4 1
11 GO:2000780 negative regulation of double-strand break repair 6 2 1
12 GO:0045738 negative regulation of DNA repair 7 2 1
13 GO:0038180 nerve growth factor signaling pathway 7 2 1
14 GO:0043297 apical junction assembly 46 4 1
15 GO:0031497 chromatin assembly 87 5 1
16 GO:0060192 negative regulation of lipase activity 9 2 1
17 GO:0043044 ATP-dependent chromatin remodeling 51 4 1
18 GO:0006338 chromatin remodeling 110 6 1
19 GO:0016567 protein ubiquitination 612 18 1
21 GO:0006853 carnitine shuttle 9 2 1
22 GO:0042787 protein ubiquitination involved in ubiquitin-dependent protein catabolic process 73 5 1

Under enriched (0)

goPos <- goPos[order(goPos$under_represented_pvalue),]
rowN <- max(minRow, sum(goPos$q.value2<=0.05))
cat(kable(goPos[1:rowN,c("category","term","numInCat","numDEInCat","q.value2")],format="html"));
category term numInCat numDEInCat q.value2
3864 GO:0006520 cellular amino acid metabolic process 416 0 1
2709 GO:0006082 organic acid metabolic process 944 6 1
5984 GO:0031589 cell-substrate adhesion 256 0 1
2704 GO:0043436 oxoacid metabolic process 934 6 1
2701 GO:0022610 biological adhesion 916 7 1
2698 GO:0007155 cell adhesion 912 7 1
2713 GO:0009123 nucleoside monophosphate metabolic process 489 2 1
2711 GO:0009161 ribonucleoside monophosphate metabolic process 478 2 1
2706 GO:0009126 purine nucleoside monophosphate metabolic process 467 2 1
2705 GO:0009167 purine ribonucleoside monophosphate metabolic process 466 2 1
2694 GO:0006140 regulation of nucleotide metabolic process 613 4 1
2693 GO:1900542 regulation of purine nucleotide metabolic process 610 4 1
2691 GO:0002520 immune system development 648 4 1
2687 GO:0050776 regulation of immune response 666 4 1
2699 GO:0046034 ATP metabolic process 442 2 1
5715 GO:0030168 platelet activation 227 0 1
2678 GO:0009968 negative regulation of signal transduction 785 6 1
2681 GO:0048534 hematopoietic or lymphoid organ development 615 4 1
2676 GO:0019752 carboxylic acid metabolic process 829 6 1
2690 GO:0071345 cellular response to cytokine stimulus 452 2 1

Negative Effect

Over enriched categories (97)

category term numInCat numDEInCat q.value
1 GO:0045333 cellular respiration 158 42 0.0000000
2 GO:0022904 respiratory electron transport chain 105 33 0.0000000
3 GO:0022900 electron transport chain 106 33 0.0000000
4 GO:0006091 generation of precursor metabolites and energy 394 62 0.0000000
5 GO:0015980 energy derivation by oxidation of organic compounds 319 54 0.0000000
6 GO:0055114 oxidation-reduction process 896 91 0.0000000
7 GO:1902600 hydrogen ion transmembrane transport 84 25 0.0000000
9 GO:0015992 proton transport 112 25 0.0000000
10 GO:0006119 oxidative phosphorylation 70 20 0.0000000
11 GO:0006818 hydrogen transport 114 25 0.0000000
12 GO:0042773 ATP synthesis coupled electron transport 54 17 0.0000000
13 GO:0042775 mitochondrial ATP synthesis coupled electron transport 54 17 0.0000000
14 GO:0006120 mitochondrial electron transport, NADH to ubiquinone 42 14 0.0000002
16 GO:0015985 energy coupled proton transport, down electrochemical gradient 19 10 0.0000003
17 GO:0015986 ATP synthesis coupled proton transport 19 10 0.0000003
18 GO:0006164 purine nucleotide biosynthetic process 191 29 0.0000004
19 GO:0009152 purine ribonucleotide biosynthetic process 185 28 0.0000008
20 GO:0009260 ribonucleotide biosynthetic process 198 29 0.0000009
21 GO:0046390 ribose phosphate biosynthetic process 201 29 0.0000009
22 GO:0072522 purine-containing compound biosynthetic process 204 29 0.0000015
25 GO:0009145 purine nucleoside triphosphate biosynthetic process 47 13 0.0000101
26 GO:0009161 ribonucleoside monophosphate metabolic process 478 46 0.0000134
28 GO:0009167 purine ribonucleoside monophosphate metabolic process 466 45 0.0000157
29 GO:0009126 purine nucleoside monophosphate metabolic process 467 45 0.0000159
30 GO:1901566 organonitrogen compound biosynthetic process 586 52 0.0000201
31 GO:0009123 nucleoside monophosphate metabolic process 489 46 0.0000210
32 GO:0006754 ATP biosynthetic process 36 11 0.0000293
33 GO:0046034 ATP metabolic process 442 43 0.0000293
34 GO:0009201 ribonucleoside triphosphate biosynthetic process 52 13 0.0000293
35 GO:0009142 nucleoside triphosphate biosynthetic process 63 14 0.0000477
36 GO:0009206 purine ribonucleoside triphosphate biosynthetic process 46 12 0.0000500
41 GO:0009165 nucleotide biosynthetic process 259 30 0.0000580
43 GO:1901293 nucleoside phosphate biosynthetic process 260 30 0.0000605
44 GO:0042776 mitochondrial ATP synthesis coupled proton transport 14 7 0.0001047
45 GO:0009127 purine nucleoside monophosphate biosynthetic process 61 13 0.0001592
46 GO:0009168 purine ribonucleoside monophosphate biosynthetic process 61 13 0.0001592
48 GO:0009156 ribonucleoside monophosphate biosynthetic process 73 14 0.0002364
49 GO:0015672 monovalent inorganic cation transport 350 34 0.0004597
50 GO:0042451 purine nucleoside biosynthetic process 88 15 0.0004597
51 GO:0046129 purine ribonucleoside biosynthetic process 88 15 0.0004597
53 GO:0042455 ribonucleoside biosynthetic process 102 16 0.0006558
54 GO:0009124 nucleoside monophosphate biosynthetic process 80 14 0.0006558
56 GO:0090407 organophosphate biosynthetic process 491 42 0.0008732
57 GO:0032787 monocarboxylic acid metabolic process 427 38 0.0010630
58 GO:0055085 transmembrane transport 992 69 0.0012888
61 GO:0009163 nucleoside biosynthetic process 111 16 0.0017512
62 GO:1901659 glycosyl compound biosynthetic process 112 16 0.0019441
64 GO:0098662 inorganic cation transmembrane transport 397 35 0.0023720
65 GO:0019752 carboxylic acid metabolic process 829 59 0.0032475
66 GO:0043534 blood vessel endothelial cell migration 59 11 0.0036741
67 GO:0034375 high-density lipoprotein particle remodeling 10 5 0.0036741
68 GO:0098660 inorganic ion transmembrane transport 457 38 0.0037539
69 GO:0044283 small molecule biosynthetic process 388 34 0.0038980
70 GO:0043535 regulation of blood vessel endothelial cell migration 40 9 0.0041082
71 GO:0034220 ion transmembrane transport 658 49 0.0046817
73 GO:0010631 epithelial cell migration 161 19 0.0049283
74 GO:0090132 epithelium migration 161 19 0.0049283
75 GO:0052652 cyclic purine nucleotide metabolic process 98 14 0.0057829
76 GO:0090130 tissue migration 164 19 0.0062029
77 GO:0009190 cyclic nucleotide biosynthetic process 99 14 0.0063298
78 GO:0043691 reverse cholesterol transport 11 5 0.0063298
82 GO:0044282 small molecule catabolic process 242 24 0.0079934
83 GO:0043542 endothelial cell migration 115 15 0.0090633
84 GO:0007005 mitochondrion organization 298 27 0.0101866
86 GO:0098655 cation transmembrane transport 467 37 0.0107476
87 GO:0055081 anion homeostasis 27 7 0.0107561
88 GO:0043436 oxoacid metabolic process 934 62 0.0118887
89 GO:0006812 cation transport 767 53 0.0119926
90 GO:0001525 angiogenesis 350 30 0.0123000
92 GO:0010632 regulation of epithelial cell migration 119 15 0.0130303
95 GO:0006082 organic acid metabolic process 944 62 0.0149198
96 GO:0001667 ameboidal cell migration 223 22 0.0149706
97 GO:0010594 regulation of endothelial cell migration 84 12 0.0179628
99 GO:0032368 regulation of lipid transport 63 10 0.0249048
100 GO:0045765 regulation of angiogenesis 158 17 0.0249048
101 GO:0006631 fatty acid metabolic process 281 25 0.0249048
102 GO:0048514 blood vessel morphogenesis 421 33 0.0275957
105 GO:0032371 regulation of sterol transport 23 6 0.0278554
106 GO:0032374 regulation of cholesterol transport 23 6 0.0278554
107 GO:0045834 positive regulation of lipid metabolic process 90 12 0.0298963
108 GO:0045766 positive regulation of angiogenesis 91 12 0.0305820
109 GO:0046889 positive regulation of lipid biosynthetic process 43 8 0.0319667
110 GO:0001568 blood vessel development 480 36 0.0323088
111 GO:0009187 cyclic nucleotide metabolic process 133 15 0.0325885
112 GO:0006171 cAMP biosynthetic process 80 11 0.0376103
113 GO:0006641 triglyceride metabolic process 93 12 0.0400026
114 GO:0010596 negative regulation of endothelial cell migration 25 6 0.0424085
115 GO:0034367 macromolecular complex remodeling 17 5 0.0428700
116 GO:0034368 protein-lipid complex remodeling 17 5 0.0428700
117 GO:0034369 plasma lipoprotein particle remodeling 17 5 0.0428700
118 GO:0048878 chemical homeostasis 682 46 0.0428700
119 GO:0044255 cellular lipid metabolic process 772 51 0.0439105
120 GO:0001944 vasculature development 509 37 0.0446977
121 GO:0043537 negative regulation of blood vessel endothelial cell migration 17 5 0.0451257
122 GO:0009060 aerobic respiration 46 8 0.0459552
123 GO:0015988 energy coupled proton transmembrane transport, against electrochemical gradient 26 6 0.0482804
124 GO:0015991 ATP hydrolysis coupled proton transport 26 6 0.0482804

Under enriched (1)

category term numInCat numDEInCat q.value2
4889 GO:0006397 mRNA processing 404 2 0.0063761
4873 GO:0051603 proteolysis involved in cellular protein catabolic process 470 6 0.1647304
4865 GO:0045087 innate immune response 724 13 0.2129853
4859 GO:0006396 RNA processing 676 12 0.2459969
4869 GO:0008380 RNA splicing 332 3 0.2459969
4858 GO:0030163 protein catabolic process 596 10 0.2637470
4864 GO:0051169 nuclear transport 363 4 0.3103444
4860 GO:0006913 nucleocytoplasmic transport 359 4 0.3325786
4856 GO:0043632 modification-dependent macromolecule catabolic process 437 6 0.3325786
4874 GO:0000375 RNA splicing, via transesterification reactions 225 1 0.3464332
4855 GO:0019941 modification-dependent protein catabolic process 433 6 0.3540487
4849 GO:1903047 mitotic cell cycle process 746 15 0.3628269
4852 GO:0034622 cellular macromolecular complex assembly 583 10 0.3628269
4870 GO:0000377 RNA splicing, via transesterification reactions with bulged adenosine as nucleophile 220 1 0.3628269
4871 GO:0000398 mRNA splicing, via spliceosome 220 1 0.3628269
4853 GO:0006511 ubiquitin-dependent protein catabolic process 424 6 0.4013682
4850 GO:0002252 immune effector process 504 8 0.4174973
4846 GO:0000278 mitotic cell cycle 856 19 0.5055196
8666 GO:0006403 RNA localization 151 0 0.5062148
4847 GO:0044257 cellular protein catabolic process 485 8 0.5062148

Final Step: csv output

write.csv(go,file=paste("csv/", outFile,"_main.csv",sep=''), row.names=FALSE)
write.csv(goPos,file=paste("csv/", outFile,"Pos.csv",sep=''), row.names=FALSE)
write.csv(goNeg,file=paste("csv/", outFile,"Neg.csv",sep=''), row.names=FALSE)