Author: bugman
Date: Thu Jan 22 19:54:17 2015
New Revision: 27279
URL: http://svn.gna.org/viewcvs/relax?rev=27279&view=rev
Log:
Bug fix for the Needleman-Wunsch sequence alignment algorithm.
Part of the scoring system was functioning incorrectly when the gap penalty
scores were non-integer,
as some scores were being stored in an integer array. Now the array is a float
array.
Modified:
trunk/lib/sequence_alignment/needleman_wunsch.py
Modified: trunk/lib/sequence_alignment/needleman_wunsch.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/lib/sequence_alignment/needleman_wunsch.py?rev=27279&r1=27278&r2=27279&view=diff
==============================================================================
--- trunk/lib/sequence_alignment/needleman_wunsch.py (original)
+++ trunk/lib/sequence_alignment/needleman_wunsch.py Thu Jan 22 19:54:17 2015
@@ -33,7 +33,7 @@
SCORE_MATCH = 1
SCORE_MISMATCH = -1
SCORE_GAP_PENALTY = 1
-SCORES = zeros(3, int16)
+SCORES = zeros(3, float32)
# Indices.
TRACEBACK_DIAG = 0
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits