X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fdbsources%2FEBIAlfaFold.java;h=fd10c794f0a095fcfa5c561d2d9f3129da813651;hb=beb2fee66dde629e3bbb7febb38d0116e1a64df2;hp=a734f52fca94e86a3a7e62ffa17d26cb5aee82c1;hpb=4b7d3640209c4434d569c746672cf9eed4250ace;p=jalview.git diff --git a/src/jalview/ws/dbsources/EBIAlfaFold.java b/src/jalview/ws/dbsources/EBIAlfaFold.java index a734f52..fd10c79 100644 --- a/src/jalview/ws/dbsources/EBIAlfaFold.java +++ b/src/jalview/ws/dbsources/EBIAlfaFold.java @@ -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,7 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy } ContactMatrixI matrix = new PAEContactMatrix(sequence, (Map) paeDict); - ((PAEContactMatrix) matrix).makeGroups(5f, true); + matrix.setGroupSet(GroupSet.makeGroups(matrix, 5f, true)); AlignmentAnnotation cmannot = sequence.addContactList(matrix); if (label != null) @@ -505,8 +506,8 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy SequenceI seq = sm.getSequence(); ContactMatrixI matrix = new PAEContactMatrix(seq, (Map) pae_obj); - ((PAEContactMatrix) matrix).makeGroups(5f, true); - AlignmentAnnotation cmannot = seq.addContactList(matrix); + matrix.setGroupSet(GroupSet.makeGroups(matrix, 5f, true)); + AlignmentAnnotation cmannot = sm.getSequence().addContactList(matrix); /* this already happens in Sequence.addContactList() seq.addAlignmentAnnotation(cmannot); */