View source: R/select_windows_range_p.R
select_windows_range_p | R Documentation |
Select windows corresponding to p-values within range of interest
select_windows_range_p(x, upper_bound, lower_bound, top_N = Inf)
x |
An output from |
upper_bound |
A numeric value corresponding to the maximum p-value for the range of interest |
lower_bound |
A numeric value correspondign to the minimum p-value for the range of interest |
top_N |
Integer representing the number of top associations on which the user wishes to perform resampling. For example, if this value is set to 5, any SNPs that do not produce p-values among the lowest 5 will not be included in outputs from this function. |
A numeric vector with indices for the position (center of window) for each SNP window with p-values within the range of interest
data("small_mtskat_results")
# Select any windows with p-values within bounds, regardless of whether they
# are among top SNPs
select_windows_range_p(
x = small_mtskat_results,
upper_bound = 0.01,
lower_bound = 0.001)
# Only include SNP windows if they are among the top 5 SNP windows
select_windows_range_p(
x = small_mtskat_results,
upper_bound = 0.01,
lower_bound = 0.001,
top_N = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.