Skip to contents

Import top features (ranked by score) from a bed file.

Usage

import_topn_bed_features(bed_feature_file, topn = 5000, center = TRUE, ...)

Arguments

bed_feature_file

a character string denoting a valid bed file.

topn

a numeric value, default 5000, denoting number of top features to keep. Top features are selected by a score column score.

center

logical, denoting whether to align each feature by central position. If TRUE, default, it will return a ranges of single nucleotide (width = 0) denting a central position of each feature.

...

Other arguments pass to the function rtracklayer::import.bed().

Value

an object of the GRanges containing topn features.

Examples

if (FALSE) {
# TODO
}