View source: R/indiv_inbreeding.R
indiv_inbreeding | R Documentation |
This function calculates the inbreeding coefficient for each individual based on the beta estimate from Weir and Goudet (2017).
indiv_inbreeding(.x, method = c("WG17"), allele_sharing_mat = NULL, ...)
## S3 method for class 'tbl_df'
indiv_inbreeding(.x, method = c("WG17"), allele_sharing_mat = NULL, ...)
## S3 method for class 'vctrs_bigSNP'
indiv_inbreeding(.x, method = c("WG17"), allele_sharing_mat = NULL, ...)
## S3 method for class 'grouped_df'
indiv_inbreeding(.x, method = c("WG17"), allele_sharing_mat = NULL, ...)
.x |
a vector of class |
method |
currently only "WG17" (for Weir and Goudet 2017). |
allele_sharing_mat |
optional and only relevant for "WG17", the matrix
of Allele Sharing returned by |
... |
currently unused. |
a numeric vector of inbreeding coefficients.
example_gt <- load_example_gt("gen_tbl")
example_gt %>% indiv_inbreeding(method = "WG17")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.