msc.heatmap: Visualization of cluster matrices

View source: R/msc.heatmap.R

msc.heatmapR Documentation

Visualization of cluster matrices

Description

The msc.heatmap function generates a heatmap that summarizes the presence or absence of Minicircle Sequence Classes (MCSs) between groups of samples. It takes an input cluster matrix, generated using the msc.matrix function, and visualizes the clustering patterns of MCSs.

Usage

msc.heatmap(clustmatrix, samples, groups)

Arguments

clustmatrix

a cluster matrix generated with the msc.matrix function. This matrix represents the presence or absence of MCSs in each sample.

samples

a vector containing the sample names.

groups

a vector specifying the groups (e.g., species) to which the samples belong.

Value

a heatmap that visualizes the clustering patterns of MCSs between sample groups. The heatmap provides an overview of the presence or absence of MCSs and helps identify shared or distinct MCS patterns among the groups.

Examples

data(exData)
data(matrices)

### run function 
msc.heatmap(matrices[["id80"]], groups = exData$species,
            samples = exData$samples )
   
### run function on every cluster matrix with subset of samples
### you will be asked to confirm
table(exData$species)
hybrid <- which(exData$species=="hybrid")
# msc.heatmap(matrices[["id97"]], groups = exData$species[hybrid], 
#             samples = exData$samples[hybrid])



rKOMICS documentation built on July 9, 2023, 7:46 p.m.