merge_GR {ALPS}R Documentation

Merge genomic regions

Description

merge overlaping genomic regions from multiple peak/bed files

Usage

merge_GR(x)

Arguments

x

a character vector of bed file paths

Value

GRanges object

Examples


## 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)

[Package ALPS version 1.4.0 Index]