mailr27262 - /trunk/lib/sequence_alignment/align_protein.py


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

Header


Content

Posted by edward on January 21, 2015 - 16:01:
Author: bugman
Date: Wed Jan 21 16:01:27 2015
New Revision: 27262

URL: http://svn.gna.org/viewcvs/relax?rev=27262&view=rev
Log:
The lib.sequence_alignment.align_protein.align_pairwise() function now 
returns data.

This includes both alignment strings as well as the gap matrix.


Modified:
    trunk/lib/sequence_alignment/align_protein.py

Modified: trunk/lib/sequence_alignment/align_protein.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/sequence_alignment/align_protein.py?rev=27262&r1=27261&r2=27262&view=diff
==============================================================================
--- trunk/lib/sequence_alignment/align_protein.py       (original)
+++ trunk/lib/sequence_alignment/align_protein.py       Wed Jan 21 16:01:27 
2015
@@ -49,6 +49,8 @@
     @type gap_penalty:          float
     @keyword extend_penalty:    The penalty for extending a gap, as a 
positive number.
     @type extend_penalty:       float
+    @return:                    The two alignment strings and the gap matrix.
+    @rtype:                     str, str, numpy rank-2 int array
     """
 
     # Checks.
@@ -96,3 +98,6 @@
             sys.stdout.write(" ")
     sys.stdout.write("\n\n")
 
+    # Return the results.
+    return align1, align2, gaps
+




Related Messages


Powered by MHonArc, Updated Thu Jan 22 16:00:02 2015