grp_means: Calculate group means per feature

View source: R/grp_means.R

grp_meansR Documentation

Calculate group means per feature

Description

Calculate group means per feature (e.g. per gene), accounting for possible intra-sample duplication.

Usage

grp_means(object, grp, args.lst = list())

Arguments

object

Matrix-like data object containing log-ratios or log-expression values, with rows corresponding to features (e.g. genes) and columns to samples. Must have row names that are non-duplicated and non-empty.

grp

Vector of sample groups. These must be valid variable names in R and the same length as ncol(object).

args.lst

List of arguments to be used in do.call(limma::lmFit, args.list). It is only checked whether is.null(args.lst$ndups) and is.null(args.lst$spacing), which could be true or false.

Value

Matrix of features (e.g. genes) by groups of means of object with column names ending in .avg.


jdreyf/ezlimma documentation built on April 28, 2024, 1:10 p.m.