Description Public fields Methods
This analysis is a wrapper around MR and colocalisation functions for systematically searching OpenGWAS for mediating pathways from genotype to trait
igd_id
The OpenGWAS dataset to analyse as the outcome GWAS
info
Meta data for igd_id
gwashits
Data from of GWAS hits
rsid_scan
List of results of PheWAS search - one item for each GWAS hit
coloc_data
Data used for colocalisation analysis - list of lists (rsid x candidate trait)
coloc_result
Results from colocalisation analysis - list of data frames, one data frame for each region analysed
candidate_instruments
List of instrument datasets for each candidate
candidate_instruments_outcome
Dataframe of instrument-outcome associations
mr_scan
Results from MR analysis - list of data frames with one data frame for each region
mv_dat
Data and results from mvmr
new()
Initialise the rms2 class for a particular outcome GWAS
rms2$new(igd_id)
igd_id
The OpenGWAS ID to use
extract_gwashits()
Extract GWAS hits for igd_id
rms2$extract_gwashits( igd_id = self$igd_id, pval = 5e-08, kb = 10000, r2 = 0.001, pop = "EUR" )
igd_id
Default=self$igd_id
pval
Significance threshold for detecting GWAS hit default=5e-8
kb
Clumping parameter default=10000
r2
Clumping parameter default=0.001
pop
1000 genome super population to use for clumping default='EUR'
scan_rsid()
Search OpenGWAS for associations with a particular GWAS hit
rms2$scan_rsid(rsid, pval = 5e-08, idlist = NULL, check_population = TRUE)
rsid
RSID
pval
Significance threshold for candidate traits default=5e-8
idlist
Which traits to search. When NULL (default) will search all available traits
check_population
Restrict candidate traits to the same population as the igd_id. Default=TRUE
colocalise_rsid()
Perform colocalisation between outcome trait and a candidate trait for a particular locus
rms2$colocalise_rsid(rsid, trait_id, radius = 50000)
rsid
RSID
trait_id
trait_id
radius
Radius around which to perform analysis default=50000
plot_coloc()
Plot region for a colocalisation analysis
rms2$plot_coloc(rsid, trait_id)
rsid
rsid
trait_id
trait_id
coloc_scan()
Perform colocalisation systematically for all detected candidate traits for a given region
rms2$coloc_scan(rsid, radius = 50000)
rsid
rsid i.e. one of the outcome GWAS hits
radius
Radius around which to perform analysis default=50000
mr()
Perform MR analysis of all candidate traits for a particular rsid
rms2$mr( rsid, steiger_filtering = TRUE, exclude_rsid_region = TRUE, radius = 250000, mrmethod = "mr_ivw" )
rsid
GWAS hit from which candidate traits are obtained
steiger_filtering
Whether to perform steiger filtering default=TRUE
exclude_rsid_region
Whether to exclude the known GWAS hit default=TRUE
radius
Excluded region radius default=250000
mrmethod
MR method default="mr_ivw"
mvmr()
Perform multivariable MR for all or some of the candidate traits related to a particular region
rms2$mvmr(rsid, traitlist = NULL)
rsid
RSID from which candidate traits are obtained
traitlist
List of traits to use. Default (NULL) is to use all, but important to scrutinise and manually exclude those which appear to be synonymous with the outcome
mvmr_lasso()
This function will take the output from mvmr, perform feature selection from the analysed traits using MVMR-LASSO, and then re-estimate the MVMR associations with only the retained traits
rms2$mvmr_lasso(rsid)
rsid
Region from which MVMR analysis has been performed
clone()
The objects of this class are cloneable with this method.
rms2$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.