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:
3ee0ddb
)
JAL-674 add sequence associated annotation rows to flanking alignment
author
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 27 Nov 2014 15:59:39 +0000
(15:59 +0000)
committer
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 27 Nov 2014 15:59:48 +0000
(15:59 +0000)
src/jalview/analysis/AlignmentUtils.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/AlignmentUtils.java
b/src/jalview/analysis/AlignmentUtils.java
index
929a855
..
6385fa7
100644
(file)
--- a/
src/jalview/analysis/AlignmentUtils.java
+++ b/
src/jalview/analysis/AlignmentUtils.java
@@
-20,6
+20,7
@@
*/
package jalview.analysis;
+import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceI;
@@
-121,6
+122,16
@@
public class AlignmentUtils
}
AlignmentI newAl = new jalview.datamodel.Alignment(
sq.toArray(new SequenceI[0]));
+ for (SequenceI s : sq)
+ {
+ if (s.getAnnotation() != null)
+ {
+ for (AlignmentAnnotation aa : s.getAnnotation())
+ {
+ newAl.addAnnotation(aa);
+ }
+ }
+ }
newAl.setDataset(core.getDataset());
return newAl;
}