Description Usage Arguments Details Value Author(s) Examples
This function validates the content of the gCMAPWeb configuration file.
1 | validate_config_file(config.file.path)
|
config.file.path |
full path to gCMAPWeb configuration file (in yaml format) |
Verifies that 1. all required fields are present 2. at least one species has been defined 3. all supported annotation packages are available 4. all cmaps have unique labels 5. each supported species has at least one associated reference dataset
Information from a valid configuration file is returned as a nested list. Invalid entries in the config file with cause an error.
Thomas Sandmann
1 2 3 4 5 6 7 8 9 | ## read the example configuration yaml file without validation
library(yaml)
conf1 <- yaml.load_file( system.file("config", "config.yml",
package="gCMAPWeb") )
## read the example configuration file and validate that
## all required information is provided and valid
conf2 <- validate_config_file( system.file("config", "config.yml",
package="gCMAPWeb") )
identical( conf1, conf2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.