View source: R/ontology_shared.R
deparse_go_value | R Documentation |
The output from the GOTERM/GO.db functions is inconsistent, to put it nicely. This attempts to extract from that heterogeneous datatype something easily readable. Example: Synonym() might return any of the following: NA, NULL, "NA", "NULL", c("NA",NA,"GO:00001"), "GO:00002", c("Some text",NA, NULL, "GO:00003") This function will boil that down to 'not found', ”, 'GO:00004', or "GO:0001, some text, GO:00004"
deparse_go_value(value)
value |
Result of try(as.character(somefunction(GOTERM[id])), silent = TRUE). somefunction would be 'Synonym' 'Secondary' 'Ontology', etc... |
something more sane (hopefully).
[GO.db]
## Not run:
## goterms = GOTERM[ids]
## sane_goterms = deparse_go_value(goterms)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.