View source: R/flip.data.frame.R
flip.data.frame | R Documentation |
Lower level function which takes an input data-frame with alleles from two separate genotypes and then compares the alleles and flips them if necessary.
flip.data.frame(df)
df |
data frame. With 5 columns in order: rsID, a1, a0 (genotype to be checked), a1, a0 (genotype to be checked against) |
flip.data.frame is called within other major functions and is required for aligning the direction of effects between two different datasets for performing a regression between them. The function (and the other functions it calls) operates in two ways: first checking whether alleles a1/a0 in one dataset match a1/a0 in the other. And then it switches the strand of the alleles being checked to make sure that these do not mismatch with those on the other side either.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.