align_alleles
compute variance weighted euclidean distance between two PC loading vectors a and balign_alleles.Rd
align_alleles
compute variance weighted euclidean distance between two PC loading vectors a and b
align_alleles(gwas.DT, ref.DT, check = FALSE)
gwas.DT | a data.table of GWAS data see |
---|---|
ref.DT | a data.table of reference alleles (see details) |
check | boolean scalar whether to add column of transformations for checking |
gwas.DT with allele aligned DT
this routine lines up on reference `a1` this is arbitrary but as long as consistency is maintained then the basis can be correctly created