plotHeatmap_POI: Function "plotHeatmap_POI"

Description Usage Arguments Value

View source: R/plotHeatmap_POI.R

Description

This function generates heatmap for the genes from selected pathways(pathway of interest)

Usage

1
2
3
4
5
6
7
8
plotHeatmap_POI(condition = c("mutant", "wildtype"), geneES, group,
  palette1, palette2 = c("#A6CEE3", "#1F78B4", "#B2DF8A", "#33A02C",
  "#FB9A99", "#E31A1C", "#FDBF6F", "#FF7F00", "#CAB2D6", "#6A3D9A"),
  groupName = "Pathway", legendName = "Gene expression", POI, GOI,
  rowCluster = TRUE, colCluster = TRUE, rowName = TRUE,
  colName = TRUE, distance = "spearman", method = "ward.D2", title,
  s1 = 15, s2 = 4, s3 = 11, s4 = 6, s5 = 12, s6 = 100,
  s7 = 2, s8 = 4, s9 = 2, H = 11, W = 28, Date)

Arguments

condition

a vector of characters representing all groups of samples, default is c("mutant", "wildtype").

geneES

an ExpressionSet object representing the gene expression matrix, at least two columns in pData(geneES) is required, "SampledID" indicating samples and "Group" indicating which condition the samples are in.

group

a data frame with each column a different column annotation which needs to be added to the heatmap, rownames correspond to sample ID.

palette1

a named list with color palettes for each annotation, each element in the list should be a named vector.

palette2

a character type vector representing the colors used for distinguishing "POI", default is c("#A6CEE3", "#1F78B4", "#B2DF8A", "#33A02C", "#FB9A99", "#E31A1C", "#FDBF6F", "#FF7F00", "#CAB2D6", "#6A3D9A").

groupName

a character variable indicating the POI name, default is "Pathway".

legendName

a character variable indicating the legend name, default is "Gene expression".

POI

a character type vector consisting of names of selected pathways.

GOI

a list consisting of gene names in the pathways of "POI"(can be all or partial genes).

colCluster

a boolean variable indicating whether to cluster the columns. Default is TRUE.

rowName

a boolean variable indicating whether to show the row names. Default is TRUE.

colName

a boolean variable indicating whether to show the column names. Default is TRUE.

distance

a character variable indicating which distance measure to be used in clustering, either one of "euclidean", "maximum", "manhattan", "canberra", "binary", "minkowski", "pearson", "spearman", "kendall", or a dist object. Default is "spearman".

method

a character variable indicating the clustering method used, pass to hclust. Default is "ward.D2".

title

a character variable containing information for filename.

s1

a numerical variable indicating the fontsize of legend title. Default is 15.

s2

a numerical variable indicating the fontsize of row names. Default is 4.

s3

a numerical variable indicating the fontsize of column names. Default is 11.

s4

a numerical variable indicating the height and width of grid in defined unit of column legend. Default is 6.

s5

a numerical variable indicating the width of the dendrogram for columns and rows. Default is 12.

s6

a numerical variable indicating the width of space for rowname and colname annotations. Default is 100.

s7

a numerical variable indicating the space between each top annotation. Default is 2.

s8

a numerical variable indicating the height of each column annotation. Default is 4.

s9

a numerical variable indicating the space between heatmap body and annotations. Default is 2.

H

a numerical variable indicating the height of saved figure. Default is 11.

W

a numerical variable indicating the width of save figure. Default is 28.

Date

a Date object obtained from Sys.Date

rowClutster

a boolean variable indicating whether to cluster the rows. Default is TRUE.

Value

a "HeatmapList" class object.


Coraline66/RNASeqAnalysis documentation built on Nov. 25, 2019, 8:03 a.m.