Learn R Programming

MmPalateMiRNA (version 1.22.0)

fixMVs: 'Fix' an RGList object with missing values.

Description

Imputes missing values in one of the red foreground, red background, green foreground, or green background matrices of an RGList object created from Miltenyi Biotech miRXplore Microarrays. Uses the replicate structure of the array to impute the missing values. Implicit assumption is that only one of the four replicated values for a probe is an missing value.

Usage

fixMVs(mat, idx, gene.ids)

Arguments

mat
One of the red foreground (R), red background (Rb), green foreground (G), or green background (Gb) matrices in an RGList object, which contains missing values.
idx
Index of missing values, as returned by the checkMVs function. See examples for usage.
gene.ids
Vector of gene IDs for each probe. See examples for usage.

Value

Returns a matrix with the missing probe values imputed.

Details

The function is specific to RGList objects which were created from Miltenyi Biotech miRXplore Microarrays, since it depends on the replicated structure of that array (probes spotted in quadruplicate) to impute the missing probe values.

See Also

checkMVs, checkOutliers, fixOutliers

Examples

Run this code
data(PalateData)
mvs <- checkMVs(PalateData)
PalateData$Rb <- fixMVs(PalateData$Rb, mvs$Rb.na, PalateData$genes$Gene)

Run the code above in your browser using DataLab