-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/controller/callbacks/reshape.c | 2 | ||||
-rw-r--r-- | src/db/dbconnect.sqc | 12 | ||||
-rw-r--r-- | src/model/data/base.sqc | 2 | ||||
-rw-r--r-- | src/model/state/state.h | 3 | ||||
-rw-r--r-- | src/util/check_error.c | 6 | ||||
-rw-r--r-- | src/util/check_error_db.c | 13 | ||||
-rw-r--r-- | src/util/check_error_db.h | 9 | ||||
-rw-r--r-- | test/distance_sanity_check/gi_227977170_78032581.png | bin | 0 -> 51161 bytes | |||
-rw-r--r-- | test/entropy/Align2Ref.m | 24 | ||||
-rw-r--r-- | test/entropy/CalculateEntropy.m | 15 | ||||
-rw-r--r-- | test/entropy/CalculateProteinEntropy.m | 25 | ||||
-rw-r--r-- | test/entropy/FastNWalign2.c | 94 | ||||
-rw-r--r-- | test/entropy/GenomeAlignments.m | 31 | ||||
-rw-r--r-- | test/entropy/GenomePairwiseDist.m | 98 | ||||
-rw-r--r-- | test/entropy/RefineAlignments.m | 276 | ||||
-rw-r--r-- | test/entropy/don_anal.m | 40 | ||||
-rw-r--r-- | test/entropy/nwalign_mod.m | 637 |
18 files changed, 1280 insertions, 9 deletions
diff --git a/test/entropy/CalculateProteinEntropy.m b/test/entropy/CalculateProteinEntropy.m new file mode 100644 index 0000000..41f06f5 --- a/dev/null +++ b/test/entropy/CalculateProteinEntropy.m | |||
@@ -0,0 +1,25 @@ | |||
1 | function OUT_DATA=CalculateProteinEntropy(Ref, ALIGN_CELL) | ||
2 | |||
3 | OUT_DATA = cell(size(ALIGN_CELL)); | ||
4 | for i = 1:size(ALIGN_CELL,1) | ||
5 | |||
6 | aligned_seqs = ALIGN_CELL{i}; | ||
7 | |||
8 | ref_seq = Ref.Sequence; | ||
9 | |||
10 | ref_prof = seqprofile(ref_seq, 'alphabet', 'aa'); | ||
11 | seqs_prof = seqprofile(aligned_seqs, 'alphabet', 'aa'); | ||
12 | |||
13 | [mp, H1, H2] = profalign(ref_prof, seqs_prof); | ||
14 | |||
15 | merged_seqs = char(zeros(size(aligned_seqs,1)+1, size(mp,2))); | ||
16 | merged_seqs(2:end, H2) = aligned_seqs; | ||
17 | merged_seqs(1, H1) = ref_seq; | ||
18 | |||
19 | entropy_vals = CalculateEntropy(merged_seqs); | ||
20 | |||
21 | %only pull out the values that are in the reference positions | ||
22 | ref_entropy = entropy_vals(H1); | ||
23 | |||
24 | OUT_DATA{i} = ref_entropy; | ||
25 | end | ||