Description Usage Arguments Details Value
View source: R/WIS_functions.R
Performs the WIS algorithm on a set of weighted intervals given as a GRangesList object.
1 2 3 4 5 6 7 |
granges_list |
A set of intervals as a GRangesList object.
Requires an interval-score to maximize over as a column specified in
|
overlap |
A non-negative integer. The allowed overlap between two intervals. |
max_score |
Name of a column in |
score_funct |
Function to update the score of a set each time an element is added. Can take up to three arguments: x (set-score of set so far) y (interval-score of added item) and n (number of items in set including the one added). Returnes set-score, default: x + y. |
max_funct |
Function to calculate a set-score to maximize over. This
set-score is not used to calculate itself, but is calculated using the
set-score from |
This function calculates a set of non-overlapping intervals while
maximizing over a given set-score. The behaviour of this set-score when an
element is added to a list is specified by the two input parameters
score_funct
and max_funct
. For a simple sum or product set-score, set both
functions to x + y or x * y.
The max_score
option can be used, if a set-score contains non linear
elements, such as log(n), e.g. in the BLAST scum-score:
score_funct = function (x, y, n) (x + y)
max_funct = function (x, y, n) (x + y) + log(n!)
If n is included in one of the formulars in a non-linear way, it is not guaranteed anymore that the final set is the best possible set.
Strand information is ignored here, has to be taken into account before calling this fucntion.
A GRangesList object with intervals compatible according to the specified options.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.