View source: R/re_allocate_windows.R
re_allocate_windows | R Documentation |
Obtain a new list of SNP windows, based on p-values from an earlier list
re_allocate_windows(
x,
upper_bound,
lower_bound,
pre_allocated_SNP_windows,
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 |
pre_allocated_SNP_windows |
Output from |
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. |
Output is the same format as for pre_allocate
: a list
of lists, with each sub-list containing elements as described in
documentation for extract_window
data("small_pre_allocated_windows")
data("small_mtskat_results")
re_allocate_windows(
x = small_mtskat_results,
upper_bound = 0.01,
lower_bound = 0.001,
pre_allocated_SNP_windows = small_pre_allocated_windows)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.