breakpointgr2bedpe: Converting breakpoint GRanges to BEDPE-like dataframe

Description Usage Arguments Details Value Examples

View source: R/plotting.R

Description

Converting breakpoint GRanges to BEDPE-like dataframe

Usage

1

Arguments

gr

A GRanges object.

Details

breakpointgr2bedpe converts a breakpoint GRanges to a BEDPE-formatted dataframe. The BEDPE format consists of two sets of genomic loci, optinal columns of name, score, strand1, strand2 and any user-defined fields. See https://bedtools.readthedocs.io/en/latest/content/general-usage.html for more details of BEDPE format.

Value

A BEDPE-formatted data frame.

Examples

1
2
3
4
5
#coverting a GRanges object to BEDPE-like dataframe
vcf.file <- system.file("extdata", "gridss.vcf", package = "StructuralVariantAnnotation")
vcf <- VariantAnnotation::readVcf(vcf.file, "hg19")
gr <- breakpointRanges(vcf)
breakpointgr2bedpe(gr)

StructuralVariantAnnotation documentation built on Nov. 8, 2020, 5:43 p.m.