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)
return paeDict;
}
+ // ###### TEST THIS
public static boolean importPaeJSONAsContactMatrixToStructure(
StructureMapping[] smArray, InputStream paeInput, String label)
throws IOException, ParseException
return false;
}
- ContactMatrixI matrix = new PAEContactMatrix(sm.getSequence(),
+ SequenceI seq = sm.getSequence();
+ ContactMatrixI matrix = new PAEContactMatrix(seq,
(Map<String, Object>) pae_obj);
-
AlignmentAnnotation cmannot = sm.getSequence().addContactList(matrix);
- if (label != null)
- {
- Console.debug("Setting annotation label to '" + label + "'");
- cmannot.label = label;
- }
- sm.getSequence().addAlignmentAnnotation(cmannot);
-
+ /* this already happens in Sequence.addContactList()
+ seq.addAlignmentAnnotation(cmannot);
+ */
return true;
}