generate_distance_matrix | R Documentation |
Generate distance matrix of genotype samples using PC matrices
generate_distance_matrix( reference_pca_df, pca_df, n_pcs = 3, method = "euclidean" )
reference_pca_df |
PC matrix of reference genotype data. Should have genotype_id, superpopulation_code and PCN columns |
pca_df |
PC matrix of input genotype data. Should have genotype_id, superpopulation_code and PCN columns |
n_pcs |
number of PCs to be taken into account. Default value is 3 |
method |
Method of distance measure. See stats::dist() method for options |
Nurlan Kerimov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.