kmeRs_heatmap: K-mer similarity score heatmap

View source: R/kmeRs_heatmap.R

kmeRs_heatmapR Documentation

K-mer similarity score heatmap

Description

The kmeRs_heatmap function generates a heatmap from similarity score matrix

Usage

kmeRs_heatmap(
  x,
  cexRow = NULL,
  cexCol = NULL,
  col = NULL,
  Colv = NA,
  Rowv = NA
)

Arguments

x

matrix calculated by kmeRs_similarity_matrix function

cexRow

= NULL

cexCol

= NULL

col

color palette, when NULL the default palette is applied

Colv

when different from NA, the column dendrogram is shown

Rowv

when different from NA, the row dendrogram is shown

Value

heatmap from results

Examples

# Use RColorBrewer to generate a figure similar to publication
library(RColorBrewer)
h.palette <- rev(brewer.pal(9, "YlGnBu"))
q0 <- c("GATTACA", "ACAGATT", "GAATTAC", "GAAATCT", "CTATAGA", "GTACATA", "AACGATT")
example <- kmeRs_similarity_matrix(q0, submat = "BLOSUM62")
kmeRs_heatmap(kmeRs_score(example), col = h.palette)

kmeRs documentation built on Sept. 11, 2024, 6:52 p.m.