g.align | R Documentation |
This function will take a GWAS summary statistic dataset and will allign its alleles to a manifest or reference dataset.
g.align(ds, manifest)
ds |
a data.table containing the GWAS summary statistic dataset |
manifest |
a data.table containing the manifest, or reference |
GWAS summary statistics should have a minimum number of columns: CHR38, BP38, REF, ALT, BETA, SE, P, and optionally ALT_FREQ. Manifest should have at least CHR38, BP38, REF, ALT.
The function will compare both allele placement and check if they're already aligned, if they need to be flipped, find their complement or reverse complementary. Then it will do what's needed for each SNP, including reversing BETA and ALT_FREQ, if necessary.
a data.table with matching REF and ALT to the reference
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.