.split_coord_fragments_in_BED {ActiveDriverWGS}R Documentation

Splits a BED12 file into separate regions

Description

Splits a BED12 file into separate regions

Usage

.split_coord_fragments_in_BED(i, coords)

Arguments

i

The i-th row of the coords data frame which needs to be split into separate elements

coords

The coords data frame which is the imported BED12 file

Value

A data frame containing the following columns for a given BED12 identifier

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.


[Package ActiveDriverWGS version 1.1.2 Index]