Learn R Programming

poolfstat (version 3.0.0)

block_sum2: 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)

Value

Return a vector of length nblocks containing the per-block sums of the input stat

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)

Examples

Run this code
#

Run the code above in your browser using DataLab