.getCodonFrame(sequence);
/*
+ * fudge: if no mapping found, check the complementary alignment
+ * todo: only store in one place? StructureSelectionManager?
+ */
+ if (mappings.isEmpty())
+ {
+ mappings = this.av.getCodingComplement().getAlignment()
+ .getCodonFrame(sequence);
+ }
+
+ /*
* todo: direct lookup of CDS for peptide and vice-versa; for now,
* have to search through an unordered list of mappings for a candidate
*/
int toRes = match.getEnd();
mapFrom = match.getSequence();
List<SequenceFeature> fs = findFeaturesAtResidue(
- match.getSequence(), fromRes, toRes);
+ mapFrom, fromRes, toRes);
for (SequenceFeature sf : fs)
{
if (!found.contains(sf))