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

View source: R/chip_related.R

import_topn_bed_featuresR Documentation

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

Description

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

## Not run: 
# TODO

## End(Not run)

cparsania/parcutils documentation built on Oct. 27, 2024, 4:55 a.m.