Learn R Programming

cinaR (version 0.2.3)

heatmap_differential: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab