phewas: Phenome Wide Assocation Study

Description Usage Arguments Details Value Functions Author(s)

View source: R/phewas.R

Description

Look up and plot results for a Phenome Wide Association Study.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
phewas(chrom, pos, ref, alt, rs, analysis, analysis_not,
  description_contains, phenotype_contains, has_tag, ncase_ge, ncohort_ge,
  analysis_fields = c("description", "label", "unit", "ncase",
  "ncontrol", "ncohort"), tag_is = "phewas_group", nearby,
  plot_ymax = 30, tags_to_right = NULL,
  dbc = getOption("gtx.dbConnection", NULL))

phewas.data(chrom, pos, ref, alt, rs, analysis, analysis_not,
  description_contains, phenotype_contains, has_tag, ncase_ge, ncohort_ge,
  analysis_fields = c("description", "label", "unit", "ncase",
  "ncontrol", "ncohort"), tag_is, with_tags = FALSE, nearby,
  dbc = getOption("gtx.dbConnection", NULL))

phewas.qq(chrom, pos, ref, alt, rs, analysis, analysis_not,
  description_contains, phenotype_contains, ncase_ge, ncohort_ge,
  dbc = getOption("gtx.dbConnection", NULL))

Arguments

chrom

Chromosome of variant of interest

pos

Position of variant of interest

ref

Reference allele of variant of interest

alt

Alternate allele of variant of interest

rs

dbSNP rs identifier of variant of interest

analysis

Identifiers of analyses to include

analysis_not

Identifiers of analyses to exclude

description_contains

Search term for analyses to include

has_tag

Tag value for analyses to include

ncase_ge

Threshold case sample size greater-or-equal for inclusion

ncohort_ge

Threshold cohort sample size greater-or-equal for inclusion

analysis_fields

Fields from analysis metadata to return

tag_is

Tag flag to use for plot grouping

nearby

Additionally return minimum pvalue at position+-nearby

plot_ymax

Y-axis value maximum

tags_to_right

Tag values to force to right of plot, next to "No tag"

dbc

Database connection

Details

Look up association summary statistics for a single variant of interest, specified either by chromosome and position, or by dbSNP rs identifier. (FIXME need to add optional ref/alt arguments to disambiguate when there are multiple variants at the same position, or multiple variants with the same rs.)

By default, summary statistics are returned for all analyses where the variant of interest was tested. If results are required for only a specific set of analyses, these can be specified using a combination of arguments that are passed through to gtxanalyses().

Value

Data frame of summary statistics

Functions

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com


tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.