gwasRegional: Retrieve GWAS summary statistics for a genomic region.

View source: R/gwasRegional.R

gwasRegionalR Documentation

Retrieve GWAS summary statistics for a genomic region.

Description

For a given study ID and chromosomal region information, this function returns data frame(tibble format) with all variants and their GWAS summary statistics.

Usage

gwasRegional(study_id, chromosome, start, end)

Arguments

study_id

Character: Open Target Genetics generated ID for the GWAS study.

chromosome

Character: Chromosome number as a string.

start

Integer: Start position of the specified chromosome.

end

Integer: End position of the specified chromosome.

Value

Returns a data table of variant information and p-values with the following columns:

  • variant.id: Character vector. Variant identifier.

  • variant.chromosome: Character vector. Chromosome of the variant.

  • variant.position: Integer vector. Position of the variant.

  • pval: Numeric vector. P-value.

Examples

## Not run: 
result <- gwasRegional(study_id = "GCST90002357",
chromosome = "1", start = 153992685, end = 154155116)

## End(Not run)

otargen documentation built on Sept. 30, 2024, 9:43 a.m.