align_alleles: 'align_alleles' compute variance weighted euclidean distance...

Description Usage Arguments Details Value

View source: R/align_alleles.R

Description

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

Usage

1
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

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

Value

gwas.DT with allele aligned DT


ollyburren/cupcake documentation built on July 30, 2020, 9:58 a.m.