TileCalcWinMinQ {TileShuffle}R Documentation

TileCalcWinMinQ

Description

Calculates the minimal q-value within merged windows.

Usage

TileCalcWinMinQ(qval, len, win.st, win.len)

Arguments

qval A numeric vector containing one or more q-values that were estimated on the original windows.
len An integer vector containing the length of one or more original windows. It must be of same length as qval.
win.st An integer vector containing one or more start positions of the merged (and hence potentially longer) windows.
win.len An integer vector containing one or more lengths of the original windows. It must be of same length as win.st.

Details

Calculates the minimal q-value within merged windows, created by union of overlapping significant windows. Since q-values were estimated only on the original windows, the minimal q-value is assigned to each merged window by considering the q-value of each entirely enclosed window.

Value

A numeric vector containing the minimal estimated q-value within each merged window by taking the minimum of all given q-values of windows that are entirely enclosed in the merged windows. The result vector has the same length as win.st. Note that windows of length zero are reported with minimal q-value of NA. Moreover, q-values with the value NA are excluded from the calculation.


[Package TileShuffle version 0.1.0 Index]