Description Usage Arguments Details Value Author(s) Examples
Sets the ontology that all subsequent computations are based on and loads the information content of all GO terms within this ontology. At load time of the library the default ontology is "BP". Furtherm, on running this function the environment GOSimEnv is reinitialized, i.e. all global settings or parameters used in the library are reset to their default values.
1 | setOntology(ont = "BP", loadIC=TRUE, DIR=NULL)
|
ont |
the ontology to use ("BP","MF","CC") |
loadIC |
Should the corresponding file with precomputed IC-values be loaded? Default: TRUE. WARNING: If the file is not loaded, no calculations can be performed! This might only be useful, if you want to recalculate IC values. |
DIR |
If not null, load file from this directory. Otherwise the version installed in GOSim's data directory is used. |
The following ontologies can be used:
biological process
molecular function
cellular component
none.
Holger Froehlich
1 2 3 4 5 | # set ontology to "molecular function"
setOntology("MF")
# calculate Resnik similarity of two GO terms within this ontology
getTermSim(c("GO:0004060","GO:0003867"),method="Resnik")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.