annotate rDiff/src/locfit/m/locfit_all.m @ 2:233c30f91d66

updated python based GFF parsing module which will handle GTF/GFF/GFF3 file types
author vipints <vipin@cbio.mskcc.org>
date Tue, 08 Oct 2013 07:15:44 -0400
parents 0f80a5141704
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
1 function out=locfit_all(varargin)
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
2
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
3 % Smoothing noisy data using Local Regression and Likelihood.
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
4 %
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
5 % This is a combination of the locfit and predict functions
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
6 %
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
7
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
8 % Minimal input validation
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
9 if nargin < 1
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
10 error( 'At least one input argument required' );
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
11 end
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
12
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
13 predict_args = {};
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
14
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
15 locfit_args = varargin{1};
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
16
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
17 if nargin==2
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
18 predict_args = varargin{2};
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
19 end;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
20
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
21 fit = locfit( locfit_args{:} );
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
22
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
23 predict_out = predict( fit, predict_args{:} );
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
24
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
25 out = {fit predict_out};