# Normalize by sample weight

### Description

Normalize samples by their weight (as in grams fresh weight)

### Usage

1 | ```
weightnorm(object, weight = "weight", lg = FALSE)
``` |

### Arguments

`object` |
an |

`weight` |
a string naming the pheno data column with the weight or a numeric vector with one weight value per sample. |

`lg` |
is the assay data already on the log-scale or not. If lg, the weight value is also log-transformed and subtraction is used instead of division. |

### Details

Normalize each sample by dividing by the loaded sample weight. The weight argument is takes from the pheno data (or given as numerical vector with one value per sample). Missing values are not tolerated.

### Value

the normalized expression set

### Author(s)

Henning Redestig

### Examples

1 2 3 |