convenience method for performing pairwise alignment
authorjprocter <jprocter@compbio.dundee.ac.uk>
Sat, 17 Nov 2012 18:34:37 +0000 (18:34 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Sat, 17 Nov 2012 18:34:37 +0000 (18:34 +0000)
src/jalview/analysis/AlignSeq.java

index 8b20554..3ede7a8 100755 (executable)
@@ -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