SequenceI ds = seq.getDatasetSequence();
for (SequenceToSequenceMapping ssm : mappings)
{
- if (ssm.fromSeq == seq || ssm.fromSeq == ds)
+ if (ssm.covers(seq,true,true))
+ {
+ if ((ssm.fromSeq == seq || ssm.fromSeq == ds))
{
codon = ssm.mapping.map.locateInTo(index, index);
if (codon != null)
}
}
}
- else if (ssm.mapping.to == seq || ssm.mapping.to == ds)
+ else if ((ssm.mapping.to == seq || ssm.mapping.to == ds))
{
{
codon = ssm.mapping.map.locateInFrom(index, index);
}
}
}
- }
+ }}
}
}
List<AlignedCodonFrame> mapping = Arrays
.asList(new AlignedCodonFrame[]
{ acf });
+ // locate start
SearchResultsI sr = buildSearchResults(selected,
startResiduePos, mapping);
for (SearchResultMatchI m : sr.getResults())
mappedStartResidue = m.getStart();
mappedEndResidue = m.getEnd();
}
+ // locate end - allowing for adjustment of start range
sr = buildSearchResults(selected, endResiduePos, mapping);
for (SearchResultMatchI m : sr.getResults())
{