| validate_gson | R Documentation |
validate_gson() checks the core data contract of a GSON gene set
collection. It is useful after constructing an object manually or reading one
from an external source.
validate_gson(x, error = TRUE)
x |
A |
error |
Logical. If |
Nothing is rewritten. A value the object declares is reported as it stands –
a schema_version this package does not know how to read, a keytype or
gsidtype that names no identifier type, a gsidtype that the gene set IDs
of the object itself contradict – because a reader that knows what a file
says is not the one that decides what the producer meant.
TRUE if the object is valid. If error = FALSE, returns a
character vector of validation messages when invalid.
x <- gson(data.frame(gsid = "GS1", gene = "gene1"))
validate_gson(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.