Description Usage Arguments Details Value See Also
View source: R/calc_candidate_regions.R
Determine candidate regions of selection.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
scan |
a data frame containing scores (output of |
threshold |
boundary score above which markers are defined as "extreme". |
pval |
logical. If |
ignore_sign |
logical. If |
window_size |
size of sliding windows. If set to 1, no windows are constructed and only the individual extremal markers are reported. |
overlap |
size of window overlap (default 0, i.e. no overlap). |
right |
logical, indicating if the windows should be closed on the right (and open on the left) or vice versa. |
min_n_mrk |
minimum number of markers per window. |
min_n_extr_mrk |
minimum number of markers with extreme value in a window. |
min_perc_extr_mrk |
minimum percentage of extremal markers among all markers. |
join_neighbors |
logical. If |
There is no generally agreed method how to determine genomic regions which might have been under recent selection. Since selection tends to yield clusters of markers with outlier values, a common approach is to search for regions with an elevated number or fraction of outlier or extremal markers. This function allows to set three conditions a window must fulfill in order to classify as candidate region:
min_n_mrk
a minimum number of (any) markers.
min_n_extr_mrk
a minimum number of markers with outlier / extreme value.
min_perc_extr_mrk
a minimum percentage of extremal markers among all markers.
"Extreme" markers are defined by having a score above the specified threshold
.
A data frame with chromosomal regions, i.e. windows that fulfill the necessary conditions to qualify as candidate regions under selection. For each region the overall number of markers, their mean and maximum, the number of markers with extremal values, their percentage of all markers and their average are reported.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.