gscan(mat, type=c("F1","BxA","BxB"), method=c("bal&gar-ca","gagnaire"))
Gagnaire's method uses a binomial test to outlier significance. For more conservative and unbiased method, "Bal&gar-car" method calculates the 95% confidence expected hybrid frequencies by the Clopper-Pearson 'exact' procedure (Clopper & Pearson 1934; Brown et al. 2001).
In both methods, the False Discovery Rate (FDR) correction (Benjamini & Hochberg 1995) is used to counteract for multiple comparisons and control the expected proportion of incorrectly rejected null hypotheses.
Balao, F., Casimiro-Soriguer, R., Garc�a-Casta�o, J.L., Terrab, A., Talavera, S. 2013. Big thistle eats the little thistle: Non-neutral unidirectional introgression endangers the conservation of Onopordum hinojense. New Phytologist, in press.
Benjamini, Y., and Y. Hochberg. 1995. Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal Statistical Society. Series B 57: 289-300.
Brown LD, Cai TT, Anirban D (2001) Interval estimation for a binomial proportion. Statistical Science 16: 101-117.
Clopper CJ, Pearson ES (1934) The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 26: 404-413
Gagnaire, P.A., V. Albert, B. Jonsson, L. Bernatchez. 2009. Natural selection influences AFLP intraspecific genetic variability and introgression patterns in Atlantic eels. Molecular Ecology 18: 1678-1691.
hybridsim
hybrids<-hybridsim(Nmarker=100, Na=30, Nb=30, Nf1=30, type="selection", S=5,Nsel=25, hybrid="F1")
outliers<-gscan(hybrids, type="F1", method="bal&gar-ca")
Run the code above in your browser using DataLab