malowess - Smooth microarray data using Lowess method

Syntax

YSmooth = malowess(X, Y)

malowess(..., 'PropertyName', PropertyValue,...)
malowess(..., 'Order', OrderValue ...)
malowess(..., 'Robust', RobustValue ...)
malowess(..., 'Span', SpanValue ...)

Arguments

X, Y

Scatter data.

OrderValue

Property to select the order of the algorithm. Enter either 1 (linear fit) or 2 (quadratic fit). The default order is 1.

RobustValue

Property to select a robust fit. Enter either true or false.

SpanValue

Property to specify the window size. The default value is 0.05 (5% of total points in X)

Description

YSmooth = malowess(X, Y) smooths scatter data (X, Y) using the Lowess smoothing method. The default window size is 5% of the length of X.


malowess(..., 'PropertyName', PropertyValue,...)
defines optional properties using property name/value pairs.

malowess(..., 'Order', OrderValue ...) chooses the order of the algorithm. Note that Curve Fitting Toolbox refers to Lowess smoothing of order 2 as Loess smoothing.

malowess(..., 'Robust', RobustValue ...) uses a robust fit when RobustValue is set to true. This option can take a long time to calculate.

malowess(..., 'Span', SpanValue ...) modifies the window size for the smoothing function. If SpanValue is less than 1, the window size is taken to be a fraction of the number of points in the data. If SpanValue is greater than 1, the window is of size SpanValue.

Examples

maStruct = gprread('mouse_a1wt.gpr');
cy3data = magetfield(maStruct, 'F635 Median');
cy5data = magetfield(maStruct, 'F532 Median');
[x,y] = mairplot(cy3data, cy5data);
drawnow
ysmooth = malowess(x,y);
hold on;
plot(x, ysmooth, 'rx')
ynorm = y - ysmooth;

See Also

Bioinformatics Toolbox™ functions: affyinvarsetnorm, maboxplot, magetfield, maimage, mainvarsetnorm, mairplot, maloglog, manorm, quantilenorm

Statistics Toolbox™ function: robustfit

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS