git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dd0a6b
)
convenience method for performing pairwise alignment
author
jprocter
<jprocter@compbio.dundee.ac.uk>
Sat, 17 Nov 2012 18:34:37 +0000
(18:34 +0000)
committer
jprocter
<jprocter@compbio.dundee.ac.uk>
Sat, 17 Nov 2012 18:34:37 +0000
(18:34 +0000)
src/jalview/analysis/AlignSeq.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/AlignSeq.java
b/src/jalview/analysis/AlignSeq.java
index
8b20554
..
3ede7a8
100755
(executable)
--- 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