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
+


_______________________________________________
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

Reply via email to