full_analysis: Perform a full microsatellite analysis

View source: R/chiimp.R

full_analysisR Documentation

Perform a full microsatellite analysis

Description

Run all aspects of a microsatellite analysis, using the currently-defined global options (see load_config and apply_config), and save the corresponding output files.

Usage

full_analysis()

Value

list of results, with the full configuration list included as "config."

Examples

## 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")
config <- load_config(config_path)
apply_config(config)
results <- full_analysis()

## End(Not run)


ressy/microsat documentation built on Aug. 24, 2023, 10:09 a.m.