File: breakpointgr2bedpe.Rd

package info (click to toggle)
r-bioc-structuralvariantannotation 1.13.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,568 kB
  • sloc: makefile: 2
file content (31 lines) | stat: -rw-r--r-- 999 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{breakpointgr2bedpe}
\alias{breakpointgr2bedpe}
\title{Converting breakpoint GRanges to BEDPE-like dataframe}
\usage{
breakpointgr2bedpe(gr)
}
\arguments{
\item{gr}{A GRanges object.}
}
\value{
A BEDPE-formatted data frame.
}
\description{
Converting breakpoint GRanges to BEDPE-like dataframe
}
\details{
\code{breakpointgr2bedpe} converts a breakpoint GRanges to a BEDPE-formatted
dataframe. The BEDPE format consists of two sets of genomic loci, optional
columns of name, score, strand1, strand2 and any user-defined fields.
See \url{https://bedtools.readthedocs.io/en/latest/content/general-usage.html}
for more details on the BEDPE format.
}
\examples{
#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)
}