block_sum2 {poolfstat} | R Documentation |
block_sum2
Description
Sugar to compute the sum of a stat per block defined by a range of SNPs (allow treating overlapping blocks)
Usage
.block_sum2(stat, snp_bj_id)
Arguments
stat |
vector of n stat values |
snp_bj_id |
integer matrix of dim nblocks x 2 giving for each block the start and end stat value index |
Details
Sugar to compute the sum of a stat per block defined by a range of SNPs (allow treating overlapping blocks)
Value
Return a vector of length nblocks containing the per-block sums of the input stat
Examples
#
[Package poolfstat version 3.0.0 Index]