From: jprocter Date: Sat, 17 Nov 2012 18:34:37 +0000 (+0000) Subject: convenience method for performing pairwise alignment X-Git-Tag: Jalview_2_9~265^2~20 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=87b5fe5acb60c8474e6a3c5dc5eaf48f23f8c2ec;p=jalview.git convenience method for performing pairwise alignment --- diff --git a/src/jalview/analysis/AlignSeq.java b/src/jalview/analysis/AlignSeq.java index 8b20554..3ede7a8 100755 --- a/src/jalview/analysis/AlignSeq.java +++ b/src/jalview/analysis/AlignSeq.java @@ -922,6 +922,25 @@ public class AlignSeq } /** + * Compute a globally optimal needleman and wunsch alignment between two + * sequences + * + * @param s1 + * @param s2 + * @param type + * AlignSeq.DNA or AlignSeq.PEP + */ + public static AlignSeq doGlobalNWAlignment(SequenceI s1, SequenceI s2, + String type) + { + AlignSeq as = new AlignSeq(s1, s2, type); + + as.calcScoreMatrix(); + as.traceAlignment(); + return as; + } + + * compute the PID vector used by the redundancy filter. * * @param originalSequences