addFeatureFromBED: Add feature to the model from a BED file

View source: R/addFeatureFromBED.R

addFeatureFromBEDR Documentation

Add feature to the model from a BED file

Description

Helper function to add features from BED files. All features will become binary features, 0 indicating no overlap, 1 indicating overlap. If the feature has more than one factor, each factor will become its own binary feature.

Usage

addFeatureFromBED(features, ranges, featureName = NULL, file = NULL)

Arguments

features

a data.frame to add the features to

ranges

a GRanges object with the ranges to overlap features (must have same length as the number of rows in the features data frame)

featureName

what the feature should be called

file

path to the BED File with 4 columns (chr, start, end, feature)

Value

the original features data.frame with the new feature(s) added from the BED file as the last column(s)


lulizou/boostme documentation built on March 16, 2023, 7:35 a.m.