Changeset 6141 for trunk/AWT/AWT_pro_a_nucs.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/AWT/AWT_pro_a_nucs.cxx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/AWT/AWT_pro_a_nucs.cxx
r6033 r6141 300 300 // --------------------------- 301 301 302 static int nuc_dist(const AWT_translator *translator, unsigned char p1, unsigned char p2) { // nucleotid changes between two aa 302 static int nuc_dist(const AWT_translator *translator, unsigned char p1, unsigned char p2) { 303 // calculate minimum necessary nucleotide-mutations for a given amino-acid-mutation 304 303 305 const struct arb_r2a_pro_2_nuc *s1,*s2; 304 s1 = translator->S2str(p1);305 s2 = translator->S2str(p2);306 s1 = translator->S2str(p1); 307 s2 = translator->S2str(p2); 306 308 if ( (!s1) || (!s2) ) return -1; 307 struct arb_r2a_pro_2_nucs *n1,*n2;308 long mindist = 3;309 struct arb_r2a_pro_2_nucs *n1,*n2; 310 long mindist = 3; 309 311 // Check all combinations, if any combination is valid -> zero distance 310 312 for ( n1 = s1->nucs; n1; n1=n1->next){
