align_alleles compute variance weighted euclidean distance between two PC loading vectors a and b

align_alleles(gwas.DT, ref.DT, check = FALSE)

Arguments

gwas.DT

a data.table of GWAS data see get_gwas_data

ref.DT

a data.table of reference alleles (see details)

check

boolean scalar whether to add column of transformations for checking

Value

gwas.DT with allele aligned DT

Details

this routine lines up on reference `a1` this is arbitrary but as long as consistency is maintained then the basis can be correctly created