calc_region_stats {rehh} | R Documentation |
Calculate score statistics for given regions
Description
Calculate score statistics (extremal values) for given regions. This function is intended for the comparison of different scores for the same chromosomal regions.
Usage
calc_region_stats(
scan,
regions,
threshold = NA,
pval = FALSE,
ignore_sign = FALSE,
right = TRUE
)
Arguments
scan |
a data frame containing scores (output of |
regions |
a data frame with column names |
threshold |
boundary score above which markers are defined as "extreme". |
pval |
logical. If |
ignore_sign |
logical. If |
right |
logical, indicating if the regions should be closed on the right (and open on the left) or vice versa. |
Value
A data frame with chromosomal regions. 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.