Learn R Programming

ActiveDriverWGS (version 1.2.0)

prepare_elements_from_BED4: Prepares element coords from a BED4 file

Description

Prepares element coords from a BED4 file

Usage

prepare_elements_from_BED4(fname)

Value

A data frame containing the following columns to be used as the input element coords to ActiveDriverWGS

chr

autosomal chromosomes as chr1 to chr22 and sex chromosomes as chrX and chrY

start

the start position of the element in base 0 coordinates (BED format)

end

the end position of the element in base 0 coordinates (BED format)

id

the element identifier - if the element contains multiple segments such as exons, each segment should be a separate row with the segment coordinates and the element identifier as id. Elements can be coding or noncoding such as exons of protein coding genes or active enhancers.

Arguments

fname

The file name of a BED4 file containing the desired elements. For further documentation on the BED4 format, refer to the UCSC website.

Examples

Run this code
elements = prepare_elements_from_BED4(system.file("extdata",
"mini.ptm.bed",
package = "ActiveDriverWGS",
mustWork = TRUE))

Run the code above in your browser using DataLab