Create windows of non-overlapping data and summarize.
NM2winNM(x, pos, maxbp, winsize = 100L, depr = TRUE)z.score(x)
windowize.NM(x, pos, starts, ends, summary = "mean", depr = TRUE)
A NumericMatrix
A vector of chromosomal positions for each row of data (variants)
Length of chromosome
Size (in bp) for windows
logical (T/F), this function has been deprecated, set to FALSE to override.
integer vector of starting positions for windows
integer vector of ending positions for windows
string indicating type of summary (mean, median, sum)
The numeric matrix where samples are in columns and variant data are in rows.
The windowing process therefore occurs along columns of data.
This matrix could be created with extract.gt
.
The chromosome is expected to contain positions 1 though maxbp. If maxbp is not specified this can be inferred from the last element in pos.