abstractJabaCalcWorker.getGapMap());
}
+ /**
+ * service specific annotation creation method
+ *
+ * @param running
+ * @param alignViewport
+ * @param gapMap
+ * @return
+ */
abstract List<AlignmentAnnotation> annotationFromScoreManager(
AnnotationWsJob running,
AlignViewportI alignViewport, boolean[] gapMap);
- // From JabawsCalcWorker
+ /**
+ * create and complete an annotation row from a JABAWS score object
+ *
+ * @param alignViewport
+ * @param gapMap
+ * @param ourAnnot
+ * @param calcId
+ * @param alWidth
+ * @param scr
+ */
protected void createAnnotationRowsForScores(AlignViewportI alignViewport,
boolean[] gapMap, List<AlignmentAnnotation> ourAnnot,
}
}
+ /**
+ * create a sequence associated annotation row for JABAWS score object scr
+ *
+ * @param alignViewport
+ * @param gapMap
+ * @param ourAnnot
+ * @param typeName
+ * @param calcId
+ * @param dseq
+ * @param base
+ * @param scr
+ * @return
+ */
protected AlignmentAnnotation createAnnotationRowsForScores(
AlignViewportI alignViewport, boolean[] gapMap,
List<AlignmentAnnotation> ourAnnot, String typeName,
return annotation;
}
+ /**
+ * replace an existing sequence associated annotation with another, creating
+ * association as necessary
+ *
+ * @param newAnnot
+ * - annotation row used to create an instance on the dataset
+ * sequence.
+ * @param typeName
+ * - label used to match existing row
+ * @param calcId
+ * - calcId for existing row
+ * @param aSeq
+ * - alignment sequence with reference to destination dataet sequence
+ */
protected void replaceAnnotationOnAlignmentWith(
AlignmentAnnotation newAnnot, String typeName, String calcId,
SequenceI aSeq)
dssan.adjustForAlignment();
}
+ /**
+ * create column annotation elements from Jabaws score object
+ *
+ * @param gapMap
+ * @param annotation
+ * @param base
+ * @param alWidth
+ * @param scr
+ * JABAWS score object
+ */
protected void constructAnnotationFromScore(boolean[] gapMap,
AlignmentAnnotation annotation,
int base, int alWidth, Score scr)