rowdoMatVec_Bygroup: the driver of grouped version calculations, enpowering...

Description Usage Arguments Value

View source: R/TestAndCorr_p.R

Description

This calculated result 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
rowdoMatVec_Bygroup(mat, vec, group, fn, addAll = FALSE, addAllName = "all",
  parallel = FALSE, core = 1, returnArray = TRUE, returnEarly = FALSE,
  ...)

Arguments

mat

a matrix, i.e. gene expression

vec

a vector of phenotype, continuous variable

group

a vector, categorical variable

fn

function to apply, e.g. rowttestMatVec, rowcorMatVec

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

returnEarly

return early for the fitted list; useful for rowanovamatVec since array is not feasible due to different dimensions of fits

...

additional parameters to fn

Value

a 3D array


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