phenotypes_byid: Get all openSNP known variations and all users sharing that...

View source: R/phenotypes_byid.R

phenotypes_byidR Documentation

Get all openSNP known variations and all users sharing that phenotype for one phenotype(-ID).

Description

Get all openSNP known variations and all users sharing that phenotype for one phenotype(-ID).

Usage

phenotypes_byid(
  phenotypeid = NA,
  return_ = c("description", "knownvars", "users"),
  ...
)

Arguments

phenotypeid

ID of openSNP phenotype.

return_

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

...

Curl options passed on to crul::HttpClient

Value

List of description of phenotype, list of known variants, or data.frame of variants for each user with that phenotype.

See Also

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

Examples

## Not run: 
phenotypes_byid(phenotypeid = 12, return_ = "desc")
phenotypes_byid(phenotypeid = 12, return_ = "knownvars")
phenotypes_byid(phenotypeid = 12, return_ = "users")

# pass on curl options
phenotypes_byid(phenotypeid = 12, return_ = "desc", verbose = TRUE)

## End(Not run)

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