View source: R/studyVariants.R
studyVariants | R Documentation |
For an input study ID, this function returns information of all variants across associated loci. The output also includes information about the associated genes within the each loci.
studyVariants(study_id)
study_id |
Character: Study ID(s) generated by Open Targets Genetics (e.g GCST90002357). |
Returns a list of two data frames.
the first data frame (tibble format) includes the loci data frame with following data structure:
variant.id
: Character. Variant ID.
pval
: Numeric. P-value.
variant.nearestCodingGene.symbol
: Character. Symbol of the nearest coding gene to the variant.
variant.rsId
: Character. Variant rsID.
variant.chromosome
: Character. Chromosome of the variant.
variant.position
: Integer. Position of the variant.
variant.nearestCodingGeneDistance
: Integer. Distance to the nearest coding gene.
credibleSetSize
: Integer. Size of the credible set.
ldSetSize
: Integer. Size of the LD set.
oddsRatio
: Numeric. Odds ratio.
beta
: Numeric. Beta value.
The second data frame includes gene information with following data structure:
score
: Numeric. Gene score.
gene.id
: Character. Gene ID.
gene.symbol
: Character. Gene symbol.
## Not run:
result <- studyVariants(study_id = "GCST003155")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.