merge_GR: Merge genomic regions

Description Usage Arguments Value Examples

View source: R/get_genomic_annotations.R

Description

merge overlaping genomic regions from multiple peak/bed files

Usage

1

Arguments

x

a character vector of bed file paths

Value

GRanges object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## load example data

chr21_data_table <- system.file('extdata/bw', 'ALPS_example_datatable.txt',
package = 'ALPS', mustWork = TRUE)

## attach path to bw_path and bed_path
d_path <- dirname(chr21_data_table)

chr21_data_table <- read.delim(chr21_data_table, header = TRUE)
chr21_data_table$bw_path <- paste0(d_path, '/', chr21_data_table$bw_path)
chr21_data_table$bed_path <- paste0(d_path, '/', chr21_data_table$bed_path)

x <- as.character(chr21_data_table$bed_path)

merge_GR(x = x)

ALPS documentation built on Nov. 8, 2020, 5:52 p.m.