# Function for normalizing the mean and variance of average-across-replicates log ratios

### Description

This performs a robust normalization of the variance of the (mean normalized) average-across-replicates log ratios by scaling the (mean normalized) average-across-replicates log ratio for each gene either by the standard deviation of the log ratios for that gene across replicates (if bigger than its absolute (mean normalized) average-across-replicates log ratio) or scaling by a constant (a quantile of the distribution of standard deviations of log ratios across replicates for all genes whose standard deviation was bigger than their absolute (mean normalized) average-across-replicates log ratio.

### Usage

1 | ```
norm1d(logratio, logintensity, span = 0.6, quant = 0.99, dye.swap = FALSE)
``` |

### Arguments

`logratio` |
A multiple-column matrix of replicates of log (base 2) ratios of gene expressions in two samples. |

`logintensity` |
A multiple-column matrix of replicates of log (base 2) total intensities (defined as the product) of gene expressions in two samples. |

`span` |
Proportion of data used to fit the loess regression of the average-across-replicates log ratios on the average-across-replicates log total intensities. |

`quant` |
Quantile to be used from the distribution of standard deviations of log ratios across replicates for all genes whose standard deviation was smaller than their absolute (mean normalized) average-across-replicates log ratio. |

`dye.swap` |
A logical value indicating whether or not the data consists of a balanced dye swap (if FALSE a mean normalization will be performed prior to the variance normalization rather than a simple averaging across replicates). |

### Details

A balanced dye swap is a data set were the data are split into two sets of replicates (same number of replicates in each set) where one set has the reverse dye assignment of the other set.

### Value

A vector of mean and variance normalized average-across-replicates log ratios.

### Author(s)

N. Dean and A. E. Raftery

### References

N. Dean and A. E. Raftery (2005). Normal uniform mixture differential gene expression detection for cDNA microarrays. BMC Bioinformatics. 6, 173-186.

http://www.biomedcentral.com/1471-2105/6/173

### See Also

`norm1c`

,`norm1a`

,`norm1b`

,`norm2c`

,`norm2d`

### Examples

1 2 3 4 5 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.