findModes | R Documentation |
THis function can be run only for k = 1
when there is only one risk factor
findModes(
data,
p.thres = NULL,
marker.data = NULL,
marker.p.thres = NULL,
mode.lmts = c(-5, 5),
cor.mat = NULL,
loss.function = c("tukey", "huber", "l2"),
k.findmodes = switch(loss.function[1], l2 = NA, huber = 1.345, tukey = 3),
include.thres = 1,
exclude.thres = 2,
map.marker = T,
ldThres = 0.9,
npoints = 10000
)
data |
A data frame containing the information of the selected genetic instruments.
One can simply take the |
p.thres |
The p-value threshold for SNP selection. The SNPs whose |
marker.data |
A data frame containing the information of candidate marker genes.
Default is NULL, which sets |
marker.p.thres |
P-value threshold for marker SNP selection. See |
cor.mat |
Either NULL or a |
loss.function |
Loss function used, one of "tukey", "huber" or "l2". Default is "tukey", which is robust to outlier SNPs with large pleiotropic effects |
k.findmodes |
Tuning parameters of the loss function, for loss "l2", it is NA, for loss "huber", default is 1.345 and for loss "tukey", default is 3. |
include.thres |
Absolute value upper threshold of the standardized test statistics of one SNP on one mode for the SNP to be included as a marker for that mode, default is 1.4 |
exclude.thres |
Absolute value lower threshold of the standardized test statistics of one SNP on other modes for the SNP to be included as a marker for that mode, default is |
map.marker |
Whether map each marker to the earist gene or not. Default is TRUE if multiple markers are found. It is always FALSE if there is just one mode. |
ldThres |
the parameter passed to the |
npoints |
Number of equally spaced points chosen for grid search of modes within the range |
mode_lmts |
The range of |
A list containing the following elements:
fun |
The profile likelihood function with argument |
modes |
The position of modes. Only include modes where marker genes can be detected |
p |
The profile likelihood plot with gene markers when there are multiple modes. The range of the x.axis depends on the distance between the maximum mode and minimum mode when there are multiple modes. |
markers |
A data frame of marker information |
raw.modes |
All modes of the profile likelihood function within the range of |
supp_gwas |
More information about the markers. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.