Merge branch 'features/JAL-2110_crossRefDuplications' into merge_JAL-2110
authorJim Procter <jprocter@issues.jalview.org>
Tue, 21 Jun 2016 15:13:05 +0000 (16:13 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 21 Jun 2016 15:13:05 +0000 (16:13 +0100)
1  2 
src/jalview/datamodel/xdb/embl/EmblEntry.java
src/jalview/gui/AlignFrame.java
src/jalview/gui/Jalview2XML.java
src/jalview/gui/SequenceFetcher.java
src/jalview/ws/jws1/SeqSearchWSThread.java
test/jalview/ws/seqfetcher/DbRefFetcherTest.java

@@@ -198,6 -198,9 +198,10 @@@ public class EmblEntr
      retrievedref.setMap(new Mapping(null, new int[] { 1, dna.getLength() },
              new int[] { 1, dna.getLength() }, 1, 1));
  
++
+     /*
+      * transform EMBL Database refs to canonical form
+      */
      if (dbRefs != null)
      {
        for (DBRefEntry dbref : dbRefs)
Simple merge
@@@ -2714,12 -2697,8 +2714,12 @@@ public class Jalview2XM
      SequenceI[] orderedSeqs = tmpseqs
              .toArray(new SequenceI[tmpseqs.size()]);
  
-     Alignment al = new Alignment(orderedSeqs);
+     AlignmentI al = new Alignment(orderedSeqs);
  
 +    if (referenceseqForView != null)
 +    {
 +      al.setSeqrep(referenceseqForView);
 +    }
      // / Add the alignment properties
      for (int i = 0; i < vamsasSet.getSequenceSetPropertiesCount(); i++)
      {
Simple merge
  package jalview.ws.jws1;
  
  import jalview.analysis.AlignSeq;
 +import jalview.api.FeatureColourI;
  import jalview.bin.Cache;
  import jalview.datamodel.Alignment;
+ import jalview.datamodel.AlignmentI;
  import jalview.datamodel.AlignmentView;
  import jalview.datamodel.SequenceI;
  import jalview.gui.AlignFrame;
@@@ -172,8 -172,8 +173,8 @@@ class SeqSearchWSThread extends JWS1Thr
       * 
       * @return null or { Alignment(+features and annotation), NewickFile)}
       */
-     public Object[] getAlignment(Alignment dataset,
+     public Object[] getAlignment(AlignmentI dataset,
 -            Map<String, Object> featureColours)
 +            Map<String, FeatureColourI> featureColours)
      {
  
        if (result != null && result.isFinished())