heatmap_differential: heatmap_differential

View source: R/visualization_functions.R

heatmap_differentialR Documentation

heatmap_differential

Description

plot differentially accessible peaks for a given comparison

Usage

heatmap_differential(results, comparison = NULL, ...)

Arguments

results

cinaR result object

comparison

these are created by cinaR from 'contrasts' user provided. If not selected the first comparison will be shown!

...

additional arguments for heatmap function, for more info '?pheatmap'

Value

ggplot object

Examples


library(cinaR)
data(atac_seq_consensus_bm) # calls 'bed'

# a vector for comparing the examples
contrasts <- sapply(strsplit(colnames(bed), split = "-", fixed = TRUE),
                    function(x){x[1]})[4:25]

results <- cinaR(bed, contrasts, reference.genome = "mm10")

heatmap_differential(results)


cinaR documentation built on May 18, 2022, 5:12 p.m.