GenomicInteractions (version 1.6.2)

export.bedpe: Export interactions in BED Paired-End format.

Description

#' Exports a GInteractions object to BED-PE format, and writes to a specified file. If filename is not specified, then a data.frame containing the information is returned. The value of the score parameter defines which field is used to populate the score field.

Usage

export.bedpe(GIObject, fn = NULL, score = "counts")
"export.bedpe"(GIObject, fn = NULL, score = "counts")

Arguments

GIObject
A GInteractions object.
fn
A filename to write the interactions data to
score
Which metadata column to use as score

Value

invisible(1) if outputting to file or a data.frame containing all of the corresponding information

Examples

Run this code
data(hic_example_data)
export.bedpe(hic_example_data, fn = tempfile(), score = "counts")

Run the code above in your browser using DataCamp Workspace