diffCalc
is similar to the fastDivPart
function. However diffCalc
is much faster and more memory efficient than fastDivPart
. This function also only allows results to be written to text files rather than xlsx file (as in fastDivPart
. No plotting options are provide in diffCalc
.)
diffCalc(infile = NULL, outfile = NULL, fst = FALSE, pairwise = FALSE, bs_locus = FALSE, bs_pairwise = FALSE, boots = NULL, ci_type = "individuals", alpha = 0.05, para = FALSE)
``individuals''
.), or across loci (``loci''
).outfile
is given as a character string, all results will be written to text files. The files will be written to a directory under the current working directory. The number of files written depends on the options choose. As well as this a list object is returned to the R workspace, containing the following results:Eddelbuettel, D., and Francois, R., (2011). Rcpp: Seamless R and C++ Integration. Journal of Statistical Software, 40(8), 1-18. URL http://www.jstatsoft.org/v40/i08/.
Hedrick, P., ``A standardized genetic differentiation measure,'' Evolution, vol. 59, no. 8, pp. 1633-1638, (2005).
Jost, L., ``G ST and its relatives do not measure differentiation,'' Molec- ular Ecology, vol. 17, no. 18, pp. 4015-4026, (2008).
Manly, F.J., ``Randomization, bootstrap and Monte Carlo methods in biology'', Chapman and Hall, London, 1997.
Meirmans, P.G., and Hedrick, P.W., (2011), Assessing population structure: Fst and related measures., Molecular Ecology, Vol. 11, pp5-18. doi: 10.1111/j.755-0998.2010.02927.x
Nei, M. and Chesser, R., ``Estimation of fixation indices and gene diver- sities,'' Ann. Hum. Genet, vol. 47, no. Pt 3, pp. 253-259, (1983).
R Development Core Team (2011). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org/.
Rousset, F., ``genepop'007: a complete re-implementation of the genepop software for Windows and Linux.,'' Molecular ecology resources, vol. 8, no. 1, pp. 103-6, (2008).
Weir, B.S. & Cockerham, C.C., Estimating F-Statistics, for the Analysis of Population Structure, Evolution, vol. 38, No. 6, pp. 1358-1370 (1984).
## Not run:
# # simply use the following format to run the function
# library(diveRsity)
# data(Test_data)
# Test_data[is.na(Test_data)] <- ""
#
# test_result <- diffCalc(infile = Test_data, outfile = "myresults",
# fst = TRUE, pairwise = TRUE, bs_locus = TRUE,
# bs_pairwise = TRUE, boots = 1000, para = TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab