-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaptPredictors.m
More file actions
48 lines (37 loc) · 1.08 KB
/
aptPredictors.m
File metadata and controls
48 lines (37 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
function aptPredictors(validationMode)
%APTPREDICTORS generates design matrix predX of sequence.
% 'sequence' ist cell array of aptamers.
% Predictors are defined in first section. Subfunctions will then generate
% predX and predNames
global apt
if ~exist('validationMode','var')
validationMode = false;
end
%% Define Predictors
% call one script that has all the necessary commands
aptSetPredsFullAnalysis
% aptSetPredsMutation_Spacer
%% Calculate design matrix X
if validationMode
apt.vali.truePredNames = apt.predNames;
apt.vali.truePredX = apt.predX;
apt.sequence = apt.vali.generatedSequence;
apt.spacer = apt.vali.generatedSpacer;
end
apt.predNames = {};
apt.predX = [];
aptIncludeExperimentalConditions(validationMode);
aptIncludePredLength;
aptIncludeDataPredictors(validationMode);
aptIncludePredLengthTail;
aptIncludePredSingles;
aptIncludePredDimers;
aptIncludePredCodons;
aptIncludePredNMers;
aptIncludeRegExp;
aptIncludeCertainPosFeatures;
aptIncludeSymmetry;
aptIncludeSimplifiedSequence;
aptIncludePredInteractionTerms;
aptRefinePredictors(validationMode)
end