pairend_plot: Title Pairend interaction plot

View source: R/pairend_plot.R

pairend_plotR Documentation

Title Pairend interaction plot

Description

Title Pairend interaction plot

Usage

pairend_plot(GENE1_anno, GENE2_anno, R1, R2, GENE1_COLOR = "#deb210",
  GENE2_COLOR = "#668ed1", genename1 = "", genename2 = "",
  xdrift = 0, ydrift = 0, VEXON = 10, genome = "hg38")

Arguments

GENE1_anno

Dataframe, a bed file format dataframe for gene1. each row represents an exon with chr, start, end.

GENE2_anno

Dataframe, a bed file format dataframe for gene2. each row represents an exon with chr, start, end.

R1

Dataframe, a bed file format dataframe for Read1 (first end) bed file.

R2

Dataframe, a bed file format dataframe for Read2 (second end) bed file.

GENE1_COLOR

character, color of left gene. In R, colors can be specified either by name e.g col = "red" or as a hexadecimal RGB triplet

GENE2_COLOR

character, color of right gene. In R, colors can be specified either by name e.g col = "red" or as a hexadecimal RGB triplet

xdrift

numeric. x axis drift from 0.

ydrift

numeric. y axis drift from 0.

VEXON

numeric. verticle height of exon.

genome

String. Genome version eg."hg38","mm10","mm20". default "hg38"

Value

ggplot object of pairend interaction plot

Examples

data(GENE1_anno,GENE2_anno,R1,R2)
pairend <- pairend_plot(GENE1_anno,GENE2_anno,R1,R2)


Irenexzwen/gginteract documentation built on Feb. 27, 2023, 3:51 p.m.