aa.graphMin = cm.getMin();
aa.graphMax = cm.getMax();
aa.editable = false;
- aa.calcId=cm.getType();
+ aa.calcId = cm.getType();
contactmaps.put(aa.annotationId, cm);
// TODO: contact matrices could be intra or inter - more than one refseq
public void addContactListFor(AlignmentAnnotation annotation,
ContactMatrixI cm)
{
+ // update annotation with data from contact map
+ annotation.graphMin = cm.getMin();
+ annotation.graphMax = cm.getMax();
+ annotation.editable = false;
+ annotation.graph = AlignmentAnnotation.CONTACT_MAP;
+ annotation.calcId = cm.getType();
+ if (annotation.label == null || "".equals(annotation.label))
+ {
+ annotation.label = cm.getAnnotLabel();
+
+ }
+ if (annotation.description == null || "".equals(annotation.description))
+ {
+ annotation.description = cm.getAnnotDescr();
+ }
contactmaps.put(annotation.annotationId, cm);
}
}