divRatio(infile = NULL, outfile = NULL, gp = 3, pop_stats = NULL, refPos = NULL, boots = 1000, para = FALSE)
infile
. Either 3 (default) or 2.infile
. The data frame should be structured in a specific way. An example can be seen by typing data(pop_stats)
into the console. The validloci column is only required if mean allelic richness and expected heterozygosity for populations of interest have been calculated from loci for which data is not present in the reference population. This column should contain a single character string of common loci between each population sample and the reference population sample.infile
. The argument is only valid when raw genotype data has been provided for the reference population sample and all other populations of interest and pop_stats
is NULL
.divRatio
on the Big_data
data set (type ?Big_data
for details), takes 10min 42s on a Toshiba Satellite R830 with 6GB RAM, and an Intel Core i5 - 2435M CPU running Linux.All results will be written to a user defined folder, providing an argument is passed for 'outfile'. Results will be written to .xlsx
files if the package xlsx
and its dependencies are installed, or a .txt
file otherwise.
Skrbinsek, T., Jelencic, M., Waits, L. P., Potocnik, H., Kos, I., & Trontelj, P. (2012). Using a reference population yardstick to calibrate and compare genetic diversity reported in different studies: an example from the brown bear. Heredity, 109(5), 299-305. doi:10.1038/hdy.2012.42
## Not run:
# # To run an example use the following format
#
# test_results <- divBasic(infile = Test_data, outfile = 'out',
# gp = 3, pop_stats = NULL, refPos = NULL,
# bootstraps = 1000, parallel = TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab