genotypes: Get openSNP genotype data for one or multiple users.

View source: R/genotypes.R

genotypesR Documentation

Get openSNP genotype data for one or multiple users.

Description

Get openSNP genotype data for one or multiple users.

Usage

genotypes(snp = NA, userid = NA, df = FALSE, ...)

Arguments

snp

SNP name.

userid

ID of openSNP user.

df

Return data.frame (TRUE) or not (FALSE). Default: FALSE

...

Curl options passed on to crul::HttpClient]

Value

List (or data.frame) of genotypes for specified user(s) at a certain SNP.

See Also

Other opensnp-fxns: allgensnp(), allphenotypes(), annotations(), download_users(), fetch_genotypes(), phenotypes_byid(), phenotypes(), users()

Examples

## Not run: 
genotypes(snp = "rs9939609", userid = 1)
genotypes("rs9939609", userid = "1,6,8", df = TRUE)
genotypes("rs9939609", userid = "1-2", df = FALSE)

## End(Not run)

ropensci/rsnps documentation built on July 31, 2023, 11:11 a.m.