List<SequenceI> thisSeqs = proteinAlignment.getSequences();
for (SequenceI aaSeq : thisSeqs)
{
+ aaSeq = aaSeq.getDatasetSequence()!=null ? aaSeq.getDatasetSequence():null;
boolean proteinMapped = false;
AlignedCodonFrame acf = new AlignedCodonFrame();
for (SequenceI cdnaSeq : tdiAlignment.getSequences())
{
+ // resolve dataset sequences
+ cdnaSeq = cdnaSeq.getDatasetSequence()!=null ? cdnaSeq.getDatasetSequence():null;
if (mappingExists(proteinAlignment.getCodonFrames(),
- aaSeq.getDatasetSequence(), cdnaSeq.getDatasetSequence()))
+ aaSeq, cdnaSeq))
{
mappingExistsOrAdded = true;
}
else
{
+
if (canBuild3diMapping(aaSeq, cdnaSeq))
{
MapList map = new MapList(new int[] { aaSeq.getStart(),aaSeq.getEnd()},new int[] { cdnaSeq.getStart(),cdnaSeq.getEnd()},1,1);