public void adjustForAlignment()
{
- if (sequenceRef == null)
- {
- return;
- }
-
- if (annotations == null)
+ if (sequenceRef == null || sequenceMapping == null
+ || annotations == null)
{
return;
}
AlignmentAnnotationPojo alignAnnotPojo = new AlignmentAnnotationPojo();
alignAnnotPojo.setDescription(annot.description);
alignAnnotPojo.setLabel(annot.label);
- alignAnnotPojo.setScore(annot.score);
+ if (!Double.isNaN(annot.score))
+ {
+ alignAnnotPojo.setScore(annot.score);
+ }
alignAnnotPojo.setCalcId(annot.getCalcId());
alignAnnotPojo.setGraphType(annot.graph);
.hasNext();)
{
JSONObject alAnnot = alAnnotIter.next();
- if (alAnnot == null)
- {
- continue;
- }
-
JSONArray annotJsonArray = (JSONArray) alAnnot.get("annotations");
Annotation[] annotations = new Annotation[annotJsonArray.size()];
int count = 0;