Description Usage Arguments Value
get_bed_overlaps
finds overlaps between the rows of a data.frame and
every BED file within a directory. If one row does not overlap anything in
the BED files, it is still returned.
1 | get_bed_overlaps(df, dir = ".", col_itemRgb = 0, verbose = F)
|
df |
Data.frame. Data.frame with at least these columns: CHROM, POS, ID. |
dir |
Character. String specifying the directory with BED files. This method assumes there is not header to the BED files that must be removed. |
col_itemRgb |
Numeric.
Specifies the column of itemRgb values within a BED file.
In a strict BED file, this would be column 9
(see https://genome.ucsc.edu/FAQ/FAQformat.html#format1).
If |
verbose |
Logical. If true, print extra output (e.g., on bed files being read). |
Data.frame.
The input data.frame with additional bed* columns named for each BED
file in the input directory (e.g., bed.<file_name1>). The value of each
column is the 'name' entry of the BED file (column 4) corresponding to
the genomic segment that overlaps the input data.
If col_itemRgb != 0
, then the output values will have the RGB
values from the BED file appended to them using a '::' character (e.g,
<bed_file.name_value> ->
<bed_file.name_value>::<bed_file.RGB_value>).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.