rowcorMatVec_Bygroup: the grouped version for rowcorMatVec

Description Usage Arguments Value

Description

This calculated the correlation between rows of mat and vec but at each group at a time as specified by the group vector It should be more flexible than rowcorMatMat which requires the same genomic mat; instead, here different group of analysis can have different sample size in genomics

Usage

1
2
3
4
rowcorMatVec_Bygroup(mat, vec, group, addAll = FALSE, addAllName = "all",
  parallel = FALSE, core = 1, method = "spearman", minN = 5,
  usercorr = TRUE, returnArray = TRUE, symbol = NULL,
  sepSymProbe = ", ", ...)

Arguments

mat

a matrix, i.e. gene expression

vec

a vector of phenotype, continuous variable

group

a vector, categorical variable

addAll

whether to calculate correlation by using all data ignoring group; this is the overall correlation

parallel

deprecated; parallel is automatically enabled when core>1

core

number of cores to use; when core>1, parallel execution is enabled

...

additional parameters to rowcorMatVec

addData

logical indicating if data (mat) should be attached as an attribute (may be used for scatter plot)

Value

a 3D array


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.