mailr27364 - /trunk/lib/sequence.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 29, 2015 - 17:38:
Author: bugman
Date: Thu Jan 29 17:38:25 2015
New Revision: 27364

URL: http://svn.gna.org/viewcvs/relax?rev=27364&view=rev
Log:
Reverted r27291 as this was rubbish.

The command used was:
svn merge -r27291:r27290 .

.....
  r27291 | bugman | 2015-01-23 15:38:21 +0100 (Fri, 23 Jan 2015) | 7 lines
  Changed paths:
     M /trunk/lib/sequence.py
  
  Fix for the lib.sequence.aa_codes_three_to_one() function.
  
  Non-standard residues are now converted to the '*' code.  The value of 'X' 
prevents any type of
  alignment of a stretch of X residues as X to X in both the BLOSUM62 and 
PAM250 substitution matrices
  are set to -1.
.....


Modified:
    trunk/lib/sequence.py

Modified: trunk/lib/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/sequence.py?rev=27364&r1=27363&r2=27364&view=diff
==============================================================================
--- trunk/lib/sequence.py       (original)
+++ trunk/lib/sequence.py       Thu Jan 29 17:38:25 2015
@@ -63,12 +63,12 @@
 def aa_codes_three_to_one(code):
     """Convert the given three letter amino acid code to the corresponding 
one letter code.
 
-    Any non-standard residues will be converted to '*'.
+    Any non-standard residues will be converted to 'X'.
 
 
     @param code:    The three letter amino acid code to convert.
     @type code:     str
-    @return:        The corresponding one letter amino acid code, or '*'.
+    @return:        The corresponding one letter amino acid code, or 'X'.
     @rtype:         str
     """
 
@@ -80,7 +80,7 @@
         return AA_CODES[upper_code]
 
     # No code.
-    return '*'
+    return 'X'
 
 
 def read_spin_data(file=None, dir=None, file_data=None, spin_id_col=None, 
mol_name_col=None, res_num_col=None, res_name_col=None, spin_num_col=None, 
spin_name_col=None, data_col=None, error_col=None, sep=None, spin_id=None):




Related Messages


Powered by MHonArc, Updated Thu Jan 29 18:00:02 2015