Learn R Programming

NanoStringNorm (version 1.0.5)

get.batch.effects: get.batch.effects

Description

A function to test if there is an association between binary traits and the sample normalization factors. Traits can include different run times, sample conditions, plate etc. This function is called internally from the get.trait.summary.stats function

Usage

get.batch.effects(x, anno, log, traits, sample.summary.stats)

Arguments

x
A NanoString RCC worksheet. If anno is not specified then the first three columns must be c("Code.Class","Name","Accession"). The remaining columns are samples and rows are genes.
anno
An alternative and flexible annotation dataset. The columns c("Code.Class","Name","Accession") do not need to be included in "x" if anno is specified.
log
Has the data been logged (log2). Raw NanoString data is not in log space. This will only effect the calculation of Fold-change.
traits
A vector or matrix of binary traits such as normal/tumour status. Each trait may only contain 1,2 or NA similar to the numeric status of factors. T-tests p-values and Fold-Change in terms of the "2" category are presented. The results can be displayed
sample.summary.stats
a data.frame of sample summary stats such as mean, sd, background level and normalization factors.

Value

  • A matrix where each row has results for a one summary statistic vs one trait.