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;
if (isStruct)
{
+ // ###### WRITE A TEST for this bit of the logic addAlphaFoldPAE with
+ // different params.
StructureSelectionManager ssm = StructureSelectionManager
.getStructureSelectionManager(Desktop.instance);
if (ssm != null)
}
ContactMatrixI matrix = new PAEContactMatrix(sequence,
(Map<String, Object>) paeDict);
+ matrix.setGroupSet(GroupSet.makeGroups(matrix, 5f, true));
AlignmentAnnotation cmannot = sequence.addContactList(matrix);
if (label != null)
return paeDict;
}
+ // ###### TEST THIS
public static boolean importPaeJSONAsContactMatrixToStructure(
StructureMapping[] smArray, InputStream paeInput, String label)
throws IOException, ParseException
}
SequenceI seq = sm.getSequence();
- Console.debug("##### SEQUENCE FOUND=" + seq.getName());
- Map<String, Object> paeObject = (Map<String, Object>) pae_obj;
-
- ContactMatrixI matrix = new PAEContactMatrix(seq, paeObject);
- AlignmentAnnotation cmannot = seq.addContactList(matrix);
- if (label != null)
- {
- cmannot.label = label;
- }
- // seq.addAlignmentAnnotation(cmannot);
-
+ ContactMatrixI matrix = new PAEContactMatrix(seq,
+ (Map<String, Object>) pae_obj);
+ matrix.setGroupSet(GroupSet.makeGroups(matrix, 5f, true));
+ AlignmentAnnotation cmannot = sm.getSequence().addContactList(matrix);
+ /* this already happens in Sequence.addContactList()
+ seq.addAlignmentAnnotation(cmannot);
+ */
return true;
}