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

export.bedpeR Documentation

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")

## S4 method for signature 'GInteractions'
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

data(hic_example_data)
export.bedpe(hic_example_data, fn = tempfile(), score = 'counts')

ComputationalRegulatoryGenomicsICL/GenomicInteractions-new documentation built on April 10, 2022, 5:39 p.m.