format_heatmap: Wrapper to format heamap from defined GNPS-MZmine inputs

Description Usage Arguments Value

View source: R/format_heatmap.R

Description

This function allows you to subset tables, create multiple colored bars for samples, change color scales, etc.

Usage

1
2
3
format_heatmap(featureTable, metadataTable, norm = FALSE, labCol = c(),
  selectField = NULL, selectValue = NULL, factorColList = list(),
  colorScale = rev(heat.colors(75)), main = "", ...)

Arguments

featureTable

MZmine format feature table.

metadataTable

qiime2 format metadata table.

norm

perform TIC normalization. Default is FALSE.

labCol

two colunms data.frame with feature indexes and labels for heatmap column. Default is c().

selectField

metadata field to subselect. Default is NULL.

selectValue

metadata field value to subselect. Default is NULL.

factorColList

nested list containing lists of: a vector of colors, one for each factor level, and a string with a metadata field name. Default is list().

colorScale

hexadecimal vector of colors. Default is heat.colors(75).

main

title for heatmap plot. Default is ”.

Value

heatmap and color list.


computational-chemical-biology/motifHeat documentation built on Feb. 3, 2020, 12:11 a.m.