topgenes.corClusterDraw_log: Draw (after computation) the correlation matrix for the...

View source: R/metaAnalyses.R

topgenes.corClusterDraw_logR Documentation

Draw (after computation) the correlation matrix for the correlation of the two studies' tissues (columns) after they have been transformed with log

Description

Draw (after computation) the correlation matrix for the correlation of the two studies' tissues (columns) after they have been transformed with log

Usage

topgenes.corClusterDraw_log(a, b, filta = NA, same = FALSE,
  filtb = NA, top = 0, use = "pairwise.complete.obs",
  method = "pearson", nameA = deparse(substitute(a)),
  nameB = deparse(substitute(b)), png = TRUE, cleanInfinite = TRUE,
  pseudocount = 1)

Arguments

a

data.frame with expression data for the first study

b

data.frame with expression data for the second study

filta

character vector or positive integer vector. colnames or indices of the columns to consider for the first study.

same

boolean. Default:FALSE. Whether the tissues (columns) from the second study should be identical to the first study.

filtb

character vector or positive integer vector. colnames or indices of the columns to consider for the second study.

top

positive integer. Number of genes to consider for the analysis; if 0 (default), all genes are considered.

use

character string expliciting how missing values should be handled. can be either "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs" (default). To fasten the process if there is no missing value, use "everything".

method

character string. Method for base::cor, either "pearson", "spearman" or "kendall".

nameA

character string to use for identifying the first study

nameB

character string to use for identifying the second study

png

boolean. Default:TRUE. Whether to save the figure as a png instead of the standard output

cleanInfinite

boolean. Default: TRUE. whether to use clean.infinite to handle log(0)

pseudocount

numeric. Default: 1. Pseudocount in case for log(x+pseudocount) when clean.infinite is not used for log(0)

Value

a heatmap of the correlation matrix on the log-transformed expression data of two studies


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.