Learn R Programming

Demerelate (version 0.8-1)

stat.pops: Calculation of Fis empirical and bootstrapped values

Description

Internal function of Demerelate to use prepared thresholds of relatedness to calculate state of relatedness for empirical data. Additionally, it combines information in different plots and prepares each single output.

Usage

stat.pops(Thresholds, tab.pop.pop, pairs, p.correct, 
               directory.name, out.name, file.output, 
               inputdata, object, value, iteration, 
               ref.pop)

Arguments

Thresholds
Thresholds of relatedness to be used for statistics on empirical data.
tab.pop.pop
Dataframe following format of inputformat only column three and four are used for calculations.
pairs
Number of randomized pairings used for reference populations.
p.correct
logical - should Yates correcture be used for $\chi^2$ statistics.
directory.name
Name of the directory results send to.
out.name
Filename of the output.
file.output
logical. Should a cluster dendogram, histograms and .txt files be sent as standard output in your working directory. In some cases (inflating NA values) it may be necessary that this value has to be set as FALSE due to problems in calculating clu
inputdata
R object or external file to be read internally with standard Demerelate inputformat. Dataframe will be split by population information and calculations will run separately. If no reference population information is
object
Information whether inputdata are an object or should be read in as file.
value
String defining method to calculate allele sharing or similarity estimates. Can be set as "rxy", "Bxy" or "Mxy".
iteration
Number of bootstrap iterations in $F_{is}$ calculations.
ref.pop
R object or external file to be read internally with standard Demerelate inputformat. Custom reference populations will be loaded for the analysis. Population information of reference file will be omitted so that al

Value

  • ClusterPopulationNameOutName.pdfCombined information on dataset by different types of plots.
  • Relate.meanPopulationNameOutName.txtCombined information on dataset regarding calculated thresholds and number of different types of relatives in population. Summary of $\chi^2$ statistics.
  • out.stat[[1]]Empirical relatedness in populations.
  • out.stat[[2]]Summary statistics for $\chi^2$ statistics.
  • error.individuals.txtIf too many NAs are found in the data the program may stop here and tells you what individuals caused the troubles in calculations.

Details

Values for logical operators and data are given by Demerelate.

References

Blouin, M.S. et al. (1996) Use of microsatellite loci to classify individuals by relatedness. Molecular Ecology, 5, 393-401. Li C.C. and Horvitz D.G. (1953) Some methods of estimating the inbreeding coefficient. American Journal of Human Genetics 5, 107-17. Oliehoek, P. A. et al. (2006) Estimating relatedness between individuals in general populations with a focus on their use in conservation programs. Genetics, 173, 483-496. Queller, D.C. and Goodnight, K.F. (1989) Estimating relatedness using genetic markers. Evolution, 43, 258-275.

See Also

weir F.stat

Examples

Run this code
## internal function not intended for usage without Demerelate

Run the code above in your browser using DataLab