block_sum2: block_sum2

block_sum2R 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

#

poolfstat documentation built on April 4, 2025, 1:49 a.m.