JAL-4134 only build tree when showing it in the tree viewer..
[jalview.git] / src / jalview / ws / dbsources / EBIAlfaFold.java
index a734f52..5ab05e0 100644 (file)
@@ -44,6 +44,7 @@ import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.ContactMatrixI;
 import jalview.datamodel.DBRefEntry;
+import jalview.datamodel.GroupSet;
 import jalview.datamodel.PDBEntry;
 import jalview.datamodel.SequenceFeature;
 import jalview.datamodel.SequenceI;
@@ -447,7 +448,6 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy
     }
     ContactMatrixI matrix = new PAEContactMatrix(sequence,
             (Map<String, Object>) paeDict);
-    ((PAEContactMatrix) matrix).makeGroups(5f, true);
 
     AlignmentAnnotation cmannot = sequence.addContactList(matrix);
     if (label != null)
@@ -505,8 +505,7 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy
     SequenceI seq = sm.getSequence();
     ContactMatrixI matrix = new PAEContactMatrix(seq,
             (Map<String, Object>) pae_obj);
-    ((PAEContactMatrix) matrix).makeGroups(5f, true);
-    AlignmentAnnotation cmannot = seq.addContactList(matrix);
+    AlignmentAnnotation cmannot = sm.getSequence().addContactList(matrix);
     /* this already happens in Sequence.addContactList()
      seq.addAlignmentAnnotation(cmannot);
      */