malowess

Smooth microarray data using the Lowess method

Syntax

YSmooth = malowess(X, Y, 'PropertyName', PropertyValue...)

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

Arguments

X, Y

Scatter data.

Order

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

Rubust

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

Span

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

Description

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

malowess(..., 'Order', OrderValue) chooses the order of the algorithm. Note that the MATLAB 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 = maStruct.Data(:,4); 
cy5data = maStruct.Data(:,13);
[x,y] = mairplot(cy3data, cy5data);
drawnow 
ysmooth = malowess(x,y); 
hold on;
plot(x,ysmooth,'rx');
ynorm = y - ysmooth;

See Also

Bioinformatics Toolbox functions mairplot, maloglog, ,


© 1994-2005 The MathWorks, Inc.