getWindows: Convert BED file into data.frame of count windows

Description Usage Arguments Value Examples

View source: R/getRCs.R

Description

Convert BED file into data.frame of count windows

Usage

1
getWindows(filename, chr = FALSE)

Arguments

filename

filename of the BED file with absolute or relative path (structure of BED file without header: chromosome, exon start, exon end, exon name)

chr

indicates whether naming contains chr prefix

Value

a data.frame with the contents of the BED file with an additional gene name and exon name column

Examples

1
2
3
bed <- list.files(system.file("extdata", package = "panelcn.mops"),
                        pattern = ".bed$", full.names = TRUE)
countWindows <- getWindows(bed)

panelcn.mops documentation built on Nov. 8, 2020, 7:56 p.m.