pyramidannotations: Rotated pyramid annotations

pyramidannotationsR Documentation

Rotated pyramid annotations

Description

Add annotations to a pyramid plot that also require the 45 degree rotation.

Usage

add_tads(bed, colour = "#1faee3", ...)

add_loops(bedpe, colour = "#1faee3", shape = 1, ...)

Arguments

bed

A BED-formatted data.frame with the following 3 columns:

  1. A character giving the chromosome names.

  2. An integer with start positions.

  3. An integer with end positions.

colour, shape, ...

Additional parameters to pass to ggplot2::layer().

bedpe

A BEDPE-formatted data.frame with the following 6 columns:

  1. A character giving the chromosome names of the first coordinate.

  2. An integer giving the start positions of the first coordinate.

  3. An integer giving the end positions of the first coordinate.

  4. A character giving the chromosome names of the second coordinate.

  5. An integer giving the start positions of the second coordinate.

  6. An integer giving the end positions of the second coordinate.

Value

A mark_layer object.

Examples

## Not run: 
p <- pyramid(exp, "chr2", 25e6, 30e6)
p + add_tads(tads)
p + add_loops(loops)

## End(Not run)

robinweide/GENOVA documentation built on March 14, 2024, 11:16 p.m.