View source: R/addFeatureFromBED.R
addFeatureFromBED | R Documentation |
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.
addFeatureFromBED(features, ranges, featureName = NULL, file = NULL)
features |
a data.frame to add the features to |
ranges |
a |
featureName |
what the feature should be called |
file |
path to the BED File with 4 columns (chr, start, end, feature) |
the original features data.frame with the new feature(s) added from the BED file as the last column(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.