marray (version 1.50.0)

maCompPlate: Generate plate IDs

Description

This function generates plate IDs from the dimensions of the grid and spot matrices. Note that this function only applies to arrays with a regular plate layout, where the number of spots is a multiple of the number of wells on a plate (usually 96 or 384) and each well contributes exactly one spot. It should thus be used with caution.

Usage

maCompPlate(x, n=384)

Arguments

x
object of class "marrayLayout", "marrayRaw" and "marrayNorm"
n
object of class "numeric", number of wells in each plate, usually 384 or 96.

Value

a vector of plate IDs (factor).

Details

Having plate IDs may be useful for the purpose of normalization. Normalization by plate can be done using the function maNormMain.

See Also

marrayLayout, marrayRaw, marrayNorm

Examples

Run this code

L<-new("marrayLayout", maNgr=4, maNgc=4, maNsr=22, maNsc=24)
plate<-maCompPlate(L,384)
table(plate)
maPlate(L)<-plate

Run the code above in your browser using DataLab