This page was generated on 2021-05-06 12:35:46 -0400 (Thu, 06 May 2021).
R version 4.0.5 (2021-03-31) -- "Shake and Throw"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> require(MLP)
Loading required package: MLP
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colnames, dirname, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
pmin.int, rank, rbind, rownames, sapply, setdiff, sort, table,
tapply, union, unique, unsplit, which.max, which.min
Loading required package: Biobase
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Loading required package: IRanges
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following object is masked from 'package:base':
expand.grid
Loading required package: affy
Loading required package: plotrix
Loading required package: gplots
Attaching package: 'gplots'
The following object is masked from 'package:plotrix':
plotCI
The following object is masked from 'package:IRanges':
space
The following object is masked from 'package:S4Vectors':
space
The following object is masked from 'package:stats':
lowess
Loading required package: gmodels
Loading required package: gdata
gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
Attaching package: 'gdata'
The following object is masked from 'package:gplots':
reorder.factor
The following object is masked from 'package:IRanges':
trim
The following objects are masked from 'package:S4Vectors':
first, first<-
The following object is masked from 'package:Biobase':
combine
The following object is masked from 'package:BiocGenerics':
combine
The following object is masked from 'package:stats4':
nobs
The following object is masked from 'package:stats':
nobs
The following object is masked from 'package:utils':
object.size
The following object is masked from 'package:base':
startsWith
Loading required package: gtools
> set.seed(479)
>
> # This is just the expressionset for this experiment.
>
> pathExampleData <- system.file("exampleFiles", "expressionSetGcrma.rda", package = "MLP")
> load(pathExampleData)
>
> # Libraries needed
> library(limma)
Attaching package: 'limma'
The following object is masked from 'package:BiocGenerics':
plotMA
> library(org.Mm.eg.db) # for mouse
>
> exprs(expressionSetGcrma)[1:2,]
2760 2763 2765 2766 2768 2769 2761
100009600 2.371111 2.170060 2.233383 2.180717 2.325886 2.239441 2.297301
100012 2.176163 2.318876 2.419263 2.223307 2.585125 2.346060 2.292061
2762 2764 2767 2770 2771
100009600 2.409001 2.49458 2.115814 2.371262 2.267459
100012 2.336415 2.47979 2.361981 2.330418 2.520918
> # 2760 2763 2765 2766 2768 2769 2761 2762 2764 2767
> #100009600 2.371111 2.170060 2.233383 2.180717 2.325886 2.239441 2.297301 2.409001 2.49458 2.115814
> #100012 2.176163 2.318876 2.419263 2.223307 2.585125 2.346060 2.292061 2.336415 2.47979 2.361981
> # 2770 2771
> #100009600 2.371262 2.267459
> #100012 2.330418 2.520918
>
> pData(expressionSetGcrma)
sample subGroup sampleColor subGroup1
2760 1 1 #FF0000 WT
2763 4 1 #FF0000 WT
2765 6 1 #FF0000 WT
2766 7 1 #FF0000 WT
2768 9 1 #FF0000 WT
2769 10 1 #FF0000 WT
2761 2 2 #0000FF KO
2762 3 2 #0000FF KO
2764 5 2 #0000FF KO
2767 8 2 #0000FF KO
2770 11 2 #0000FF KO
2771 12 2 #0000FF KO
> # sample subGroup sampleColor
> #2760 1 1 #FF0000
> #2763 4 1 #FF0000
> #2765 6 1 #FF0000
> #2766 7 1 #FF0000
> #2768 9 1 #FF0000
> #2769 10 1 #FF0000
> #2761 2 2 #0000FF
> #2762 3 2 #0000FF
> #2764 5 2 #0000FF
> #2767 8 2 #0000FF
> #2770 11 2 #0000FF
> #2771 12 2 #0000FF
>
> pData(expressionSetGcrma)$subGroup1 <- ifelse(pData(expressionSetGcrma)$subGroup==1,"WT","KO")
>
> ###==============================================GENERATING LIMMA p-VALUES=================================
>
> # boxplot(data.frame(exprs(expressionSetGcrma))
> normDat <- normalizeQuantiles(exprs(expressionSetGcrma), ties=TRUE)
> subGroup <- pData(expressionSetGcrma)$subGroup
> design <- model.matrix(~ -1 +factor(subGroup ))
>
> colnames(design) <- c("group1", "group2")
> contrast.matrix <- makeContrasts(group1-group2, levels=design)
> fit <- lmFit(normDat,design)
> fit2 <- contrasts.fit(fit, contrast.matrix)
> fit2 <- eBayes(fit2)
> normDat.p <- fit2$p.value
>
> normDat.p[1:5]
[1] 0.4328583 0.7448996 0.6088859 0.1845008 0.2312761
> #[1] 0.4328583 0.7448996 0.6088859 0.1845008 0.2312761
>
> system.time(goGeneSet <- getGeneSets(species = "Mouse", geneSetSource = "GOBP", entrezIdentifiers = featureNames(expressionSetGcrma)))
Loading required package: GO.db
user system elapsed
33.847 3.556 37.446
> goGeneSet[1:3]
$`GO:0000002`
[1] "11545" "16882" "17258" "17527" "19017" "21975" "22059" "23797"
[9] "27393" "27395" "27397" "50776" "57813" "70556" "72170" "72962"
[17] "74143" "74528" "83408" "192287" "216021" "216805" "229524" "230784"
[25] "327762" "408022"
$`GO:0000003`
[1] "11287" "11352" "11421" "11430" "11434" "11441"
[7] "11477" "11479" "11480" "11486" "11495" "11497"
[13] "11498" "11499" "11504" "11516" "11517" "11535"
[19] "11551" "11552" "11553" "11576" "11600" "11606"
[25] "11614" "11622" "11625" "11643" "11647" "11651"
[31] "11674" "11705" "11747" "11757" "11774" "11789"
[37] "11797" "11804" "11819" "11820" "11835" "11839"
[43] "11857" "11863" "11865" "11883" "11920" "11998"
[49] "12009" "12018" "12028" "12034" "12043" "12048"
[55] "12050" "12053" "12124" "12125" "12142" "12155"
[61] "12159" "12160" "12161" "12162" "12163" "12164"
[67] "12166" "12167" "12168" "12173" "12190" "12192"
[73] "12211" "12215" "12235" "12236" "12237" "12261"
[79] "12266" "12290" "12305" "12310" "12316" "12317"
[85] "12323" "12344" "12363" "12366" "12380" "12387"
[91] "12394" "12411" "12416" "12426" "12427" "12443"
[97] "12447" "12448" "12449" "12458" "12461" "12462"
[103] "12464" "12465" "12466" "12468" "12469" "12505"
[109] "12527" "12530" "12531" "12532" "12550" "12566"
[115] "12576" "12577" "12589" "12591" "12592" "12593"
[121] "12606" "12608" "12617" "12638" "12640" "12659"
[127] "12702" "12704" "12705" "12745" "12753" "12767"
[133] "12801" "12804" "12841" "12846" "12877" "12916"
[139] "12918" "12919" "12929" "12946" "12977" "12981"
[145] "13006" "13030" "13039" "13046" "13052" "13070"
[151] "13075" "13123" "13134" "13164" "13166" "13205"
[157] "13206" "13363" "13382" "13383" "13393" "13404"
[163] "13411" "13435" "13487" "13488" "13491" "13492"
[169] "13498" "13524" "13525" "13526" "13529" "13615"
[175] "13617" "13618" "13649" "13653" "13667" "13731"
[181] "13813" "13819" "13852" "13854" "13856" "13857"
[187] "13866" "13870" "13874" "13875" "13982" "13983"
[193] "13984" "14008" "14011" "14087" "14088" "14155"
[199] "14160" "14165" "14178" "14179" "14180" "14183"
[205] "14211" "14228" "14238" "14275" "14276" "14283"
[211] "14308" "14309" "14313" "14347" "14366" "14367"
[217] "14388" "14421" "14431" "14447" "14453" "14460"
[223] "14461" "14462" "14463" "14531" "14536" "14566"
[229] "14595" "14598" "14609" "14610" "14620" "14622"
[235] "14632" "14633" "14654" "14658" "14682" "14705"
[241] "14714" "14725" "14748" "14764" "14766" "14782"
[247] "14784" "14810" "14815" "14824" "15013" "15018"
[253] "15078" "15081" "15110" "15170" "15182" "15194"
[259] "15204" "15205" "15209" "15211" "15212" "15213"
[265] "15214" "15221" "15235" "15247" "15251" "15270"
[271] "15361" "15364" "15373" "15375" "15377" "15378"
[277] "15387" "15395" "15396" "15398" "15405" "15408"
[283] "15423" "15430" "15431" "15433" "15438" "15446"
[289] "15463" "15482" "15484" "15486" "15487" "15488"
[295] "15499" "15500" "15502" "15511" "15512" "15516"
[301] "15567" "15570" "15574" "15894" "15904" "16000"
[307] "16001" "16002" "16007" "16011" "16147" "16153"
[313] "16157" "16173" "16175" "16176" "16319" "16322"
[319] "16323" "16324" "16330" "16336" "16337" "16365"
[325] "16401" "16410" "16412" "16433" "16450" "16477"
[331] "16532" "16542" "16590" "16601" "16650" "16669"
[337] "16691" "16777" "16783" "16833" "16842" "16846"
[343] "16847" "16848" "16859" "16866" "16867" "16869"
[349] "16871" "16872" "16875" "16876" "16878" "16886"
[355] "16952" "16970" "16974" "17125" "17128" "17129"
[361] "17149" "17171" "17173" "17191" "17221" "17235"
[367] "17240" "17242" "17256" "17283" "17289" "17295"
[373] "17300" "17304" "17311" "17319" "17345" "17350"
[379] "17381" "17390" "17395" "17427" "17450" "17451"
[385] "17535" "17684" "17685" "17686" "17687" "17688"
[391] "17701" "17702" "17761" "17771" "17776" "17836"
[397] "17864" "17886" "17977" "17978" "17979" "17986"
[403] "18000" "18004" "18005" "18011" "18014" "18022"
[409] "18072" "18095" "18119" "18121" "18127" "18128"
[415] "18129" "18142" "18159" "18168" "18194" "18211"
[421] "18285" "18286" "18291" "18292" "18387" "18413"
[427] "18417" "18426" "18429" "18430" "18431" "18436"
[433] "18441" "18442" "18472" "18475" "18476" "18504"
[439] "18507" "18514" "18551" "18552" "18555" "18591"
[445] "18595" "18606" "18617" "18663" "18667" "18671"
[451] "18747" "18749" "18763" "18764" "18766" "18775"
[457] "18776" "18783" "18787" "18791" "18792" "18793"
[463] "18795" "18799" "18802" "18811" "18812" "18814"
[469] "18815" "18817" "18830" "18858" "18861" "18952"
[475] "19014" "19015" "19016" "19049" "19052" "19059"
[481] "19090" "19109" "19110" "19111" "19112" "19113"
[487] "19114" "19116" "19118" "19119" "19120" "19143"
[493] "19156" "19183" "19204" "19211" "19214" "19215"
[499] "19219" "19223" "19225" "19229" "19242" "19247"
[505] "19275" "19288" "19294" "19317" "19339" "19353"
[511] "19355" "19357" "19359" "19360" "19361" "19364"
[517] "19366" "19401" "19411" "19662" "19664" "19701"
[523] "19725" "19733" "19735" "19773" "19821" "19886"
[529] "20017" "20104" "20112" "20181" "20182" "20315"
[535] "20317" "20319" "20322" "20346" "20363" "20377"
[541] "20397" "20415" "20423" "20437" "20473" "20474"
[547] "20475" "20520" "20541" "20613" "20655" "20662"
[553] "20670" "20671" "20674" "20675" "20681" "20682"
[559] "20683" "20686" "20687" "20690" "20708" "20719"
[565] "20720" "20724" "20729" "20730" "20732" "20733"
[571] "20744" "20758" "20779" "20826" "20843" "20848"
[577] "20850" "20851" "20860" "20869" "20871" "20873"
[583] "20878" "20892" "20897" "20899" "20905" "20910"
[589] "20957" "20962" "20997" "21333" "21334" "21336"
[595] "21337" "21338" "21357" "21386" "21405" "21410"
[601] "21412" "21414" "21416" "21425" "21454" "21463"
[607] "21645" "21674" "21679" "21744" "21749" "21803"
[613] "21808" "21812" "21821" "21823" "21824" "21830"
[619] "21833" "21834" "21843" "21849" "21857" "21869"
[625] "21887" "21923" "21945" "21958" "21959" "21973"
[631] "21974" "22022" "22026" "22061" "22064" "22065"
[637] "22068" "22092" "22113" "22114" "22115" "22127"
[643] "22137" "22174" "22187" "22209" "22210" "22215"
[649] "22249" "22329" "22334" "22337" "22339" "22353"
[655] "22371" "22384" "22412" "22413" "22415" "22417"
[661] "22418" "22421" "22422" "22431" "22441" "22445"
[667] "22446" "22589" "22632" "22635" "22661" "22668"
[673] "22691" "22694" "22696" "22697" "22698" "22701"
[679] "22702" "22715" "22762" "22764" "22768" "22786"
[685] "22787" "22788" "22789" "23793" "23885" "23887"
[691] "23920" "23950" "23967" "23968" "23980" "23991"
[697] "23997" "24061" "24084" "24086" "24127" "24128"
[703] "26357" "26362" "26366" "26370" "26380" "26384"
[709] "26395" "26407" "26413" "26416" "26417" "26423"
[715] "26434" "26437" "26564" "26565" "26900" "26909"
[721] "26910" "26920" "26927" "26934" "26942" "26946"
[727] "26972" "27061" "27083" "27084" "27206" "27222"
[733] "27354" "27356" "27372" "27386" "28036" "28078"
[739] "28088" "28105" "28114" "28135" "29871" "29876"
[745] "30054" "30841" "30939" "30953" "30959" "50500"
[751] "50501" "50505" "50525" "50722" "50785" "50790"
[757] "50796" "50878" "50915" "51789" "51792" "51885"
[763] "51938" "52020" "52028" "52679" "52683" "52864"
[769] "53381" "53419" "53422" "53424" "53601" "53604"
[775] "53614" "53814" "53878" "53885" "53897" "53975"
[781] "54003" "54004" "54137" "54140" "54204" "54383"
[787] "54388" "54418" "54427" "54486" "54524" "54562"
[793] "54608" "54611" "54650" "54725" "55925" "55978"
[799] "55993" "55994" "56092" "56094" "56096" "56213"
[805] "56218" "56220" "56223" "56228" "56274" "56291"
[811] "56312" "56334" "56335" "56371" "56406" "56436"
[817] "56449" "56484" "56503" "56523" "56526" "56622"
[823] "56635" "56693" "56710" "56711" "56717" "56739"
[829] "56746" "57256" "57264" "57320" "57746" "57749"
[835] "57815" "57816" "57908" "58186" "58226" "58230"
[841] "58231" "58864" "58991" "58998" "59030" "59083"
[847] "60530" "60534" "60597" "63872" "64009" "64335"
[853] "64383" "64707" "64931" "65247" "65971" "66193"
[859] "66197" "66313" "66392" "66404" "66515" "66573"
[865] "66634" "66654" "66707" "66712" "66713" "66720"
[871] "66722" "66793" "66923" "66977" "66983" "67000"
[877] "67010" "67030" "67042" "67077" "67121" "67141"
[883] "67181" "67204" "67231" "67310" "67331" "67333"
[889] "67345" "67374" "67378" "67402" "67504" "67505"
[895] "67537" "67555" "67561" "67652" "67690" "67713"
[901] "67753" "67869" "67909" "67946" "67968" "67971"
[907] "67981" "68107" "68166" "68170" "68231" "68265"
[913] "68275" "68298" "68328" "68549" "68708" "68767"
[919] "68911" "68922" "68981" "69032" "69064" "69260"
[925] "69286" "69287" "69306" "69307" "69310" "69376"
[931] "69444" "69538" "69546" "69707" "69716" "69852"
[937] "69865" "69928" "69982" "70069" "70093" "70099"
[943] "70231" "70235" "70248" "70375" "70441" "70465"
[949] "70503" "70691" "70772" "70840" "70862" "70873"
[955] "70887" "70891" "70918" "70956" "70977" "71037"
[961] "71062" "71083" "71089" "71099" "71132" "71175"
[967] "71233" "71241" "71242" "71371" "71567" "71709"
[973] "71711" "71765" "71830" "71836" "71840" "71841"
[979] "71846" "71904" "71914" "71950" "71981" "72135"
[985] "72148" "72162" "72236" "72415" "72469" "72504"
[991] "72508" "72568" "72634" "72780" "72787" "72891"
[997] "72938" "73242" "73244" "73296" "73316" "73329"
[1003] "73336" "73412" "73456" "73472" "73542" "73616"
[1009] "73673" "73677" "73679" "73721" "74041" "74052"
[1015] "74068" "74075" "74090" "74117" "74174" "74188"
[1021] "74229" "74237" "74267" "74286" "74288" "74297"
[1027] "74309" "74354" "74360" "74369" "74386" "74401"
[1033] "74434" "74446" "74450" "74468" "74469" "74691"
[1039] "74708" "74711" "74716" "74754" "74847" "74927"
[1045] "75019" "75033" "75140" "75178" "75202" "75388"
[1051] "75410" "75459" "75469" "75514" "75533" "75571"
[1057] "75596" "75605" "75622" "75642" "75646" "75753"
[1063] "75801" "75826" "75828" "75909" "76378" "76407"
[1069] "76457" "76486" "76499" "76573" "76606" "76718"
[1075] "76800" "76850" "76856" "76858" "76867" "76915"
[1081] "76925" "76943" "77053" "77128" "77424" "77595"
[1087] "77609" "77963" "77980" "78081" "78118" "78124"
[1093] "78284" "78619" "78634" "78658" "78784" "78801"
[1099] "78803" "78925" "80297" "80517" "80838" "80884"
[1105] "80912" "81018" "83434" "83456" "83557" "83558"
[1111] "83560" "83561" "83964" "83984" "93684" "93736"
[1117] "93757" "93759" "93760" "93837" "93960" "94109"
[1123] "94221" "94224" "94244" "94246" "97086" "97165"
[1129] "98558" "98711" "99412" "99929" "100121" "100155"
[1135] "100317" "100535" "100986" "101187" "101476" "102774"
[1141] "102991" "103468" "103554" "103583" "103733" "103768"
[1147] "104083" "104111" "104148" "104156" "104263" "104271"
[1153] "104310" "104346" "104362" "104601" "104799" "104806"
[1159] "105349" "105511" "105988" "106389" "106757" "107515"
[1165] "107586" "107626" "107656" "107849" "107970" "107995"
[1171] "108829" "108961" "109685" "109689" "109727" "109785"
[1177] "110012" "110082" "110084" "110147" "110355" "110459"
[1183] "110542" "110957" "110958" "112405" "114602" "114606"
[1189] "114642" "114661" "114662" "114714" "114875" "116837"
[1195] "140498" "140557" "170676" "171285" "171429" "171506"
[1201] "192119" "192176" "192195" "192199" "192236" "192897"
[1207] "193322" "193838" "194908" "195434" "207165" "207182"
[1213] "207304" "207352" "207607" "207686" "208144" "208169"
[1219] "208188" "208727" "209011" "209091" "209351" "210510"
[1225] "210529" "210554" "211064" "211484" "211651" "212517"
[1231] "212670" "212937" "213081" "213236" "213272" "213389"
[1237] "213402" "213541" "213742" "214105" "214253" "214290"
[1243] "214292" "214321" "214384" "214572" "214575" "214593"
[1249] "214901" "215028" "215029" "215095" "215387" "215854"
[1255] "216350" "216725" "216869" "217039" "217116" "217216"
[1261] "217325" "217341" "217715" "217716" "218214" "218454"
[1267] "218914" "219038" "223593" "223697" "223825" "223921"
[1273] "223989" "224045" "224171" "224661" "224727" "224826"
[1279] "224902" "225182" "225865" "226049" "226090" "226162"
[1285] "226265" "226841" "227210" "227394" "227615" "227631"
[1291] "227736" "228421" "228980" "229227" "229357" "229700"
[1297] "230103" "230126" "230594" "230809" "230861" "230899"
[1303] "231051" "231633" "231672" "231832" "231912" "232174"
[1309] "232223" "232286" "232345" "232664" "233276" "234857"
[1315] "235072" "235320" "235345" "235559" "235626" "235628"
[1321] "235682" "236266" "236899" "237336" "237625" "237911"
[1327] "238055" "238057" "238247" "238328" "238330" "238405"
[1333] "238406" "239083" "239167" "239528" "239731" "240069"
[1339] "240255" "240590" "240697" "240725" "240899" "241116"
[1345] "241516" "241624" "242202" "242523" "242620" "243862"
[1351] "243897" "243905" "244486" "244495" "244551" "245000"
[1357] "245865" "246747" "252828" "252866" "252868" "252967"
[1363] "252973" "259279" "260305" "263876" "264134" "268396"
[1369] "268420" "268465" "268491" "268591" "268697" "268755"
[1375] "268860" "268903" "268930" "269254" "269275" "269610"
[1381] "269682" "269701" "270624" "271036" "271127" "271564"
[1387] "271639" "272643" "276920" "277353" "278240" "280287"
[1393] "280667" "280668" "317653" "319177" "319448" "319953"
[1399] "320022" "320244" "320277" "320558" "320752" "320790"
[1405] "327826" "328019" "328365" "328401" "328440" "328580"
[1411] "328845" "329557" "329954" "330149" "330188" "330319"
[1417] "330409" "330470" "330830" "330890" "331046" "331416"
[1423] "332110" "332397" "353188" "378430" "378462" "380654"
[1429] "380684" "380702" "380709" "380773" "380855" "380993"
[1435] "380994" "381022" "381157" "381196" "381290" "381404"
[1441] "381489" "381677" "381759" "382007" "382077" "382217"
[1447] "382275" "382277" "382301" "383491" "384619" "384806"
[1453] "384813" "387139" "387140" "387153" "387156" "387161"
[1459] "387162" "387177" "387178" "387179" "387188" "387198"
[1465] "387218" "387244" "387245" "387246" "387247" "399599"
[1471] "433700" "434438" "434768" "434784" "434794" "442829"
[1477] "544736" "545156" "546055" "546118" "546272" "546282"
[1483] "574428" "574437" "574438" "619517" "619697" "619991"
[1489] "622554" "623474" "625249" "625662" "627081" "628438"
[1495] "632708" "637277" "664799" "664829" "665270" "665780"
[1501] "666317" "666528" "668110" "668929" "671232" "671564"
[1507] "723849" "723868" "723886" "723932" "723939" "723955"
[1513] "723956" "723962" "723965" "723966" "735262" "735309"
[1519] "751535" "100009600" "100038417" "100038489" "100038977" "100039030"
[1525] "100039065" "100039120" "100039842" "100039905" "100040608" "100040894"
[1531] "100042109" "100042175" "100042922" "100042929" "100042931" "100042939"
[1537] "100042943" "100042944" "100042946" "100043216" "100048534" "100049545"
[1543] "100049546" "100049548" "100113365" "100124460" "100124479" "100124480"
[1549] "100190765" "100270744" "100503361" "100504642" "100861637" "100861881"
[1555] "101055773" "101056116" "101056210" "102443351" "102631559" "102633564"
[1561] "102636501" "102638101" "102638793" "102639094" "102639490" "102639895"
[1567] "105247282" "108168511" "108168530" "108168552" "108168557" "108168582"
[1573] "108168594" "113523646"
$`GO:0000012`
[1] "11545" "22064" "22594" "66408" "71991" "72103" "93759" "104884"
[9] "319583" "319955"
> # output changes with annotation version !
>
> y <- normDat.p[,1]
> names(y) <- featureNames(expressionSetGcrma)
>
> y[1:10]
100009600 100012 100017 100019 100034251 100036521 100037258 100037278
0.4328583 0.7448996 0.6088859 0.1845008 0.2312761 0.7865153 0.7772888 0.1037431
100038570 100038635
0.1368744 0.3272610
> # 100009600 100012 100017 100019 100034251 100036521 100037258 100037278
> # 0.4328583 0.7448996 0.6088859 0.1845008 0.2312761 0.7865153 0.7772888 0.1037431
> # 100038570 100038635
> # 0.1368744 0.3272610
>
> mlpObject <- MLP(geneSet = goGeneSet, geneStatistic = y, minGenes = 5, maxGenes = 100, rowPermutations = TRUE,
+ nPermutations = 6, smoothPValues = TRUE)
>
>
>
> mlpObject[1:10, ]
totalGeneSetSize testedGeneSetSize geneSetStatistic geneSetPValue
GO:0002282 5 5 1.6379883 0.0001061182
GO:0019886 16 16 1.0776253 0.0002577988
GO:1900426 12 10 1.1666016 0.0005252272
GO:0002495 21 21 0.9671930 0.0005309789
GO:0002478 27 26 0.9072525 0.0005987767
GO:0002504 22 22 0.9409343 0.0006943950
GO:1900424 18 16 1.0116903 0.0007245152
GO:0060179 12 10 1.1332820 0.0007891040
GO:0002468 11 9 1.1429532 0.0010383446
GO:0019884 34 31 0.8282624 0.0011723008
geneSetDescription
GO:0002282 microglial cell activation involved in immune response
GO:0019886 antigen processing and presentation of exogenous peptide antigen via MHC class II
GO:1900426 positive regulation of defense response to bacterium
GO:0002495 antigen processing and presentation of peptide antigen via MHC class II
GO:0002478 antigen processing and presentation of exogenous peptide antigen
GO:0002504 antigen processing and presentation of peptide or polysaccharide antigen via MHC class II
GO:1900424 regulation of defense response to bacterium
GO:0060179 male mating behavior
GO:0002468 dendritic cell antigen processing and presentation
GO:0019884 antigen processing and presentation of exogenous antigen
> # output changes with annotation version !
>
> plotGOgraph(object = mlpObject, main = "test of main")
Loading required package: Rgraphviz
Loading required package: graph
Loading required package: grid
Attaching package: 'Rgraphviz'
The following objects are masked from 'package:IRanges':
from, to
The following objects are masked from 'package:S4Vectors':
from, to
Loading required package: GOstats
Loading required package: Category
Loading required package: Matrix
Attaching package: 'Matrix'
The following object is masked from 'package:S4Vectors':
expand
Attaching package: 'GOstats'
The following object is masked from 'package:AnnotationDbi':
makeGOGraph
Loading required package: annotate
Loading required package: XML
Attaching package: 'XML'
The following object is masked from 'package:graph':
addNode
Attaching package: 'annotate'
The following object is masked from 'package:Rgraphviz':
toFile
>
> pdf(file = "test10.pdf", width = 10, height = 10)
> # x11(width = 10, height = 10)
> plot(mlpObject, nRow = 10) # by default: type = "barplot"
> dev.off()
pdf
2
>
> unlink("test10.pdf")
>
> if (FALSE){
+ pdf(file = "test5.pdf", width =10, height = 10)
+ mlpBarplot(object = mlpObject, geneSetSource = "GOBP", nRow = 10, descriptionLength = 5)
+ dev.off()
+
+ unlink("test5.pdf")
+
+ pdf(file = "test100.pdf", width =10, height = 20)
+ mlpBarplot(object = mlpObject, geneSetSource = "GOBP", nRow = 10, descriptionLength = 100)
+ dev.off()
+
+ unlink("test100.pdf")
+ }
>
> plot(mlpObject, type = "quantileCurves")
> plot(mlpObject, type = "GOgraph")
>
> proc.time()
user system elapsed
64.166 6.404 70.888