Learn R Programming

otargen (version 1.1.5)

studyVariants: Retrieves all variants for a study.

Description

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.

Usage

studyVariants(study_id)

Value

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.

Arguments

study_id

Character: Study ID(s) generated by Open Targets Genetics (e.g GCST90002357).

Examples

Run this code
if (FALSE) {
result <- studyVariants(study_id = "GCST003155")
}

Run the code above in your browser using DataLab