asBED: Coerce to BED structure

Description Usage Arguments Details Value Author(s) Examples

Description

Coerce the structure of a GenomicInteractions into a GRanges following BED-like conventions, i.e., with columns for blocks and thick regions.

Usage

1
2
3
## S4 method for signature 'GenomicInteractions'
asBED(x, keep.mcols = FALSE,
  score = "score")

Arguments

x

A GenomicInteractions object.

keep.mcols

Logical scalar, specifying whether to keep non-BED12 columns in the output object.

score

String specifying which field to export as the score field in BED12. Defaults to "auto" which will choose "score", then "counts", if present, or fill the column with zeros.

Details

Note that setting keep.mcols=TRUE may cause problems with some parsers.

Value

A GRanges object with the metadata columns name, blockStarts and blockSizes.

Author(s)

Malcolm Perry, Elizabeth Ing-Simmons

Examples

1
2
3

LTLA/fugi documentation built on June 22, 2019, 8:50 p.m.