Infer ancestry of GWAS dataset by matching against 1000 genomes allele frequencies
Source:R/afl2.r
infer_ancestry.Rd
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
rsid
andeaf
columns. e.g. output from associations- snpinfo
Output from
afl2_list
,afl2_rsid
orafl2_chrpos
. IfNULL
thenafl2_list()
is used by default- 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.