calculate_relatedness | R Documentation |
Estimate the relatedness between pairs of isolates
calculate_relatedness(snpdata, mat.name="GT", family="Location", sweepRegions=NULL, groups=c("Chogen","DongoroBa"))
snpdata |
SNPdata object |
mat.name |
the name of the genotype table to be used. default="GT" |
from |
the name of the column, in the metadata table, to be used to represent the sample's population |
sweepRegions |
a data frame with the genomic coordinates of the regions of the genome to be discarded. This should contain the following 3 columns:
|
groups |
a vector of character. If specified, relatedness will be generated between these groups |
The relatedness calculation is based on the model developed by Aimee R. Taylor and co-authors. https://journals.plos.org/plosgenetics/article?id=10.1371/journal.pgen.1009101
SNPdata object with an extra field: relatedness. This will contain the relatedness data frame of 3 columns and its correspondent matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.