generate_distance_matrix: Generate distance matrix of genotype samples using PC...

View source: R/pop_assign.R

generate_distance_matrixR Documentation

Generate distance matrix of genotype samples using PC matrices

Description

Generate distance matrix of genotype samples using PC matrices

Usage

generate_distance_matrix(
  reference_pca_df,
  pca_df,
  n_pcs = 3,
  method = "euclidean"
)

Arguments

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

Author(s)

Nurlan Kerimov


kauralasoo/eQTLUtils documentation built on March 12, 2023, 8:50 p.m.