summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/Makefile.am2
-rw-r--r--src/controller/callbacks/reshape.c2
-rw-r--r--src/db/dbconnect.sqc12
-rw-r--r--src/model/data/base.sqc2
-rw-r--r--src/model/state/state.h3
-rw-r--r--src/util/check_error.c6
-rw-r--r--src/util/check_error_db.c13
-rw-r--r--src/util/check_error_db.h9
-rw-r--r--test/distance_sanity_check/gi_227977170_78032581.pngbin0 -> 51161 bytes
-rw-r--r--test/entropy/Align2Ref.m24
-rw-r--r--test/entropy/CalculateEntropy.m15
-rw-r--r--test/entropy/CalculateProteinEntropy.m25
-rw-r--r--test/entropy/FastNWalign2.c94
-rw-r--r--test/entropy/GenomeAlignments.m31
-rw-r--r--test/entropy/GenomePairwiseDist.m98
-rw-r--r--test/entropy/RefineAlignments.m276
-rw-r--r--test/entropy/don_anal.m40
-rw-r--r--test/entropy/nwalign_mod.m637
18 files changed, 1280 insertions, 9 deletions
diff --git a/test/entropy/don_anal.m b/test/entropy/don_anal.m
new file mode 100644
index 0000000..7d0a648
--- a/dev/null
+++ b/test/entropy/don_anal.m
@@ -0,0 +1,40 @@
1d = fastaread('C:\dondata\FASTA2.fa');
2lens = arrayfun(@(x)(numel(x.Sequence)), d);
3d(lens < 300) = [];
4rexp = '/Human/(\w*)/([\d\w]*)/(.*?)/(\d{4})/';
5headers = cell(length(d), 1);
6[headers{:}] = deal(d(:).Header);
7groups = regexp(headers, rexp, 'tokens', 'once');
8cgroups = cat(1,groups{:});
9dates = unique(cgroups(:,end));
10
11seqs = cell(length(d), 1);
12[seqs{:}] = deal(d(:).Sequence);
13
14ALIGN_CELL = cell(length(dates), 1);
15INDS_CELL = cell(length(dates), 1);
16PAIRWISE_CELL = cell(length(dates),1);
17for i = 1:length(dates)
18 display(dates{i})
19 tf = strcmp(cgroups(:,end), dates{i});
20 if isempty(PAIRWISE_CELL{i})
21 pairwise_dists = GenomePairwiseDist(d(tf), dates{i});
22 PAIRWISE_CELL{i} = pairwise_dists;
23 else
24 pairwise_dists = PAIRWISE_CELL{i};
25 end
26 if isempty(ALIGN_CELL{i}) || isempty(INDS_CELL{i})
27 [ALIGN_CELL{i}, INDS_CELL{i}] = GenomeAlignments(d(tf), ...
28 pairwise_dists);
29 save restore_data PAIRWISE_CELL ALIGN_CELL INDS_CELL
30 end
31end
32
33for i = 1:length(ALIGN_CELL)
34 [ALIGN_CELL{i}, ~]= RefineAlignments(ALIGN_CELL{i});
35end
36
37
38ents = CalculateProteinEntropy(d(1), ALIGN_CELL);
39
40dents = cat(1, ents{:});

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.