norm.counts: Spectral counts matrix normalization

Description Usage Arguments Details Value Author(s) See Also Examples

Description

An spectral counts matrix is normalized by means of a set of samples divisors.

Usage

1
norm.counts(msnset, div)

Arguments

msnset

A MSnSet with spectral counts in the expression matrix.

div

A vector of divisors by sample

Details

Each column in the data matrix is divided by the corresponding divisor to obtain the normalizad matrix.

Value

A MSnSet object with the normalized spectral counts.

Author(s)

Josep Gregori

See Also

The MSnSet class documentation and normalize

Examples

1
2
3
4
5
6
7
data(msms.dataset)
msnset <- pp.msms.data(msms.dataset)
(tspc <- apply(exprs(msnset),2,sum))
div <- tspc/median(tspc)
e.norm <- norm.counts(msnset, div)
apply(exprs(e.norm),2,sum)
e.norm


Search within the msmsEDA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.