The GOSets class extends the Sets class to implement a container that also describes relations between genes and sets using the Gene Ontology controlled vocabulary.
Refer to GOOntologyCodes and GOEvidenceCodes for valid vocabulary.
GOSets(relations = DataFrame(element = character(0), set = character(0), ontology = factor(character(0), names(GOOntologyCodes)), evidence = factor(character(0), names(GOEvidenceCodes))), ...)
| relations |
|
|---|---|
| ... | Arguments passed to the |
A GOSets object.
#>#>#> #> #> #> #>#>#>#>#>#>#>#>relations <- as.data.frame(head(go_sets)) gs <- GOSets(relations) # Subsetting ---- gs1 <- subset(gs, element == "1" & ontology == "BP" & evidence == "TAS") relations(gs1)#> GOHits object with 2 hits and 2 metadata columns: #> from to | evidence ontology #> <integer> <integer> | <factor> <factor> #> [1] 1 1 | TAS BP #> [2] 1 2 | TAS BP #> ------- #> nLnode: 1 / nRnode: 2#> [1] TAS ND TAS IDA TAS TAS #> 26 Levels: EXP IDA IPI IMP IGI IEP HTP HDA HMP HGI HEP IBA IBD IKR IRD ... IEAontology(gs)#> [1] BP BP BP BP BP BP #> Levels: BP MF CC