if (FALSE) {
# replace my path names for goa and gobasic with your own!!
# these were obtained from the download sites listed in 'details' section
goa<-"~/goa_human.gaf"
gobasic<-"~/go-basic.obo"
GOGOA<-buildGODatabase(goa,gobasic,dir="~/",verbose=FALSE)
# > dim(GOGOA)
# [1] 720139 5
# > GOGOA[1:5,]
# HGNC GO RELATION NAME ONTOLOGY
# [1,] "NUDT4B" "GO:0003723" "enables" "RNA binding" "molecular_function"
# [2,] "NUDT4B" "GO:0005515" "enables" "protein binding" "molecular_function"
# [3,] "NUDT4B" "GO:0046872" "enables" "metal ion binding" "molecular_function"
# [4,] "NUDT4B" "GO:0005829" "located_in" "cytosol" "cellular_component"
# [5,] "TRBV20OR9-2" "GO:0002376" "involved_in" "immune system process" "biological_process"
}
# here is a small example that you can run
f1<-system.file("extdata","goa_human.small.gaf",package="minimalistGODB")
f2<-system.file("extdata","go-basic.small.obo",package="minimalistGODB")
GODBsmall<-buildGODatabase(f1,f2,verbose=FALSE)
Run the code above in your browser using DataLab