main | R Documentation |
A small wrapper function to read a configuration file path from command-line arguments, load the configuration data (see load_config), and run full_analysis.
main(args = NULL)
args |
optional character vector of arguments to use rather than those detected with base::commandArgs. |
list of results, with the full configuration list included as "config."
## Not run:
# Set up a temporary copy of the CHIIMP test data
example_dir <- tempfile()
dir.create(example_dir)
setwd(example_dir)
test_data$write_seqs(test_data$seqs,
"str-dataset",
"Replicate1-Sample%s-%s.fasta")
locus_attrs_path <- system.file("example_locus_attrs.csv",
package = "chiimp")
file.copy(locus_attrs_path, "locus_attrs.csv")
# Run the example analysis
config_path <- system.file("example_config.csv", package = "chiimp")
results <- main(config_path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.