infer_ancestry {ieugwasr} | R Documentation |
Infer ancestry of GWAS dataset by matching against 1000 genomes allele frequencies
Description
Uses ~20k SNPs selected for common frequency across 5 major super populations
Usage
infer_ancestry(d, snpinfo = NULL, opengwas_jwt = get_opengwas_jwt())
Arguments
d |
Data frame containing at least |
snpinfo |
Output from |
opengwas_jwt |
Used to authenticate protected endpoints. Login to https://api.opengwas.io to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT. |
Value
data frame ordered by most likely ancestry, each row represents a super population and cor column represents the correlation between the GWAS dataset and the 1000 genomes super population allele frequencies
[Package ieugwasr version 1.0.1 Index]