easyLoad_bed: easyLoad_bed takes a character vector of file paths to bed...

Description Usage Arguments Value Examples

View source: R/functions_easyLoad.R

Description

easyLoad_bed takes a character vector of file paths to bed plus files and returning named list of GRanges. Mainly a utility function for loading MACS2 narrowPeak and broadPeak.

Usage

1
easyLoad_bed(file_paths, file_names = NULL, extraCols = character())

Arguments

file_paths

character vector of paths to narrowPeak files. If named, those names will be used in output unless overriden by providing file_names.

file_names

character vector of names for output list. If not NULL will override any existing names for file_paths. Default is NULL.

extraCols

named character vector of classes. passed to rtracklayer::import for format = "BED". default is character().

Value

a named list of GRanges loaded from file_paths

Examples

1
2
3
bed_f = system.file("extdata/test_loading.bed",
    package = "seqsetvis", mustWork = TRUE)
easyLoad_bed(bed_f, "my_bed")

jrboyd/seqsetvis documentation built on Oct. 14, 2018, 3:04 p.m.