match_alleles: match_alleles

Description Usage Arguments Value Author(s) See Also

View source: R/functions_moloc.R View source: R/align_alleles_betas.R

Description

Match alleles to a reference and flip betas

Match alleles to a reference and flip betas

Usage

1
2
3
4
5
match_alleles(data, A1.ref = "A1.ref", A2.ref = "A2.ref", A1.data = "A1",
  A2.data = "A2", BETA.data = "BETA", flip = TRUE)

match_alleles(data, A1.ref = "A1.ref", A2.ref = "A2.ref", A1.data = "A1",
  A2.data = "A2", BETA.data = "BETA", flip = TRUE)

Arguments

data,

is a data.frame with columns A1 and A2, and reference alleles that need to match

A1.ref

column names of ref alleles for A1 in the same data frame

A2.ref

column names of ref alleles for A2 in the same data frame

flip

logical, whether to flip the betas if the alleles are flipped

data,

is a data.frame with columns A1 and A2, and reference alleles that need to match

A1.ref

column names of ref alleles for A1 in the same data frame

A2.ref

column names of ref alleles for A2 in the same data frame

flip

logical, whether to flip the betas if the alleles are flipped

Value

data frame

data frame

Author(s)

Claudia Giambartolomei, James Boocock

Claudia Giambartolomei, James Boocock

See Also

Other align.functions: change_indels, complement_snp

Other align.functions: change_indels, complement_snp


clagiamba/moloc documentation built on Jan. 25, 2021, 2:43 a.m.