estimateVar: Estimate the mean abundance and variance of each protein in...

Description Usage Arguments Details Value Author(s) Examples

View source: R/estimateVar.R

Description

Estimate the mean abundance and variance of each protein in each condition.

Usage

1
estimateVar(data, annotation, log2Trans = FALSE, ...)

Arguments

data

Data matrix with protein abundance. Rows are proteins and columns are Biological replicates or samples.

annotation

Group information for samples in data. ‘Run’ for MS run, ‘BioReplicate’ for biological subject ID and ‘Condition’ for group information are required. ‘Run’ information should be the same with the column of ‘data’. Multiple ‘Run’ may come from same ‘BioReplicate’.

log2Trans

Logical. If TRUE, the input ‘data’ is log-transformed with base 2. Default is FALSE.

Details

The function fits intensity-based linear model on the input data ‘data’. This function outputs variance components and mean abundance for each protein.

Value

data is the input data matrix with log2 protein abundance.

model is the list of linear models trained for each protein.

mu is the mean abundance matrix of each protein in each phenotype group.

sigma is the sd matrix of each protein in each phenotype group.

promean is the mean abundance vector of each protein across all the samples.

prosd is the standard deviation of each protein across all the samples.

protein is proteins, correpsonding to the rows in mu and sigma or the element of promean.

Author(s)

Ting Huang, Meena Choi, Sumedh Sankhe, Olga Vitek

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data(OV_SRM_train)
data(OV_SRM_train_annotation)

# estimate the mean protein abunadnce and variance (standard deviation) in each condition
variance_estimation <- estimateVar(data = OV_SRM_train,
                                   annotation = OV_SRM_train_annotation,
                                   log2Trans = FALSE)

# the mean protein abundance in each condition
head(variance_estimation$mu)

# the standard deviation in each condition
head(variance_estimation$sigma)

# the mean protein abundance across all the conditions
head(variance_estimation$promean)

# the sample standard deviation across all the conditions
head(variance_estimation$prosd)

Vitek-Lab/MSstatsSampleSize documentation built on Aug. 28, 2020, 10:39 a.m.