Description Usage Arguments Details Value
This is an internal utility function
1 | get_site_dist(d, group_thres = 2)
|
d |
A data table that matches each site at each sample with the group of that sample. Must have column 'allele' which must have two values only; column 'Group' which is the grouping factor (can be character) with two levels. |
group_thres |
The minimum number of samples per group to consider the site. |
Looks at the distribution of alleles at one site and determines how it distributes with respect to a grouping factor. If the site perfectly separates both groups it is 'Fixed' and 'Polymorphic' otherwise.
Assumes grouping factor with two levels (NO CHECKS!!)
Assumes bi-allelic site indicated by character string (NO CHECKS!!)
Assumes only data from one site is give (NO CHECKS!!)
USE WITH CARE!!
A character string indicating the type of site: 'Fixed', 'Polymorphic', 'Invariant' or NA.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.