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

View source: R/EDA_functions.R

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

1 | ```
norm.counts(msnset, div)
``` |

`msnset` |
A MSnSet with spectral counts in the expression matrix. |

`div` |
A vector of divisors by sample |

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

A MSnSet object with the normalized spectral counts.

Josep Gregori

The `MSnSet`

class documentation and `normalize`

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
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.