Description Usage Arguments Value Author(s) Examples
This function checks if a GO identifier is valid by looking it up
in the GO.db
package's GOTERM
term
map. Depending whether a namespace is provided, the function will
look in one, multiple or all namespaces.
1 | validGO(goid, namespace)
|
goid |
A vector of GO identifier. |
namespace |
One of several of |
TRUE
if goid
is a valid GO identifier,
FALSE
otherwise.
Laurent Gatto
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## GO:0000014 is a valid MF Term
validGO("GO:0000014")
validGO("GO:0000014", "CC")
validGO("GO:0000014", "MF")
validGO("GO:0000014", c("CC", "MF"))
## GO:000000 is not valid
validGO("GO:0000000")
## GO:0000015 is a valid CC Term
validGO(c("GO:0000014", "GO:0000015"))
validGO(c("GO:0000014", "GO:0000015"), "CC")
validGO(c("GO:0000014", "GO:0000015"), "MF")
validGO(c("GO:0000014", "GO:0000015"), c("CC", "MF"))
validGO(c("GO:0000014", "GO:0000000"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.