Learn R Programming

rphast (version 1.6.9)

flatten.feat: Combine adjacent features with the same "feature" field

Description

Combine adjacent features with the same "feature" field

Usage

flatten.feat(x, weightedAverageScore = FALSE, minScore = FALSE)

Arguments

x

An object of type feat

weightedAverageScore

If TRUE, scores of merged features are given by the average of those features, weighted by their original lengths. Otherwise, scores of merged features are simply summed.

minScore

If TRUE, scores of merged features are given by the minimum score of the combined features.

Value

A features object in which adjacent features are combined into one longer feature.