System.err
.println("Implementation Notice: EMBLCDS records not properly supported yet - Making up the CDNA region of this sequence... may be incorrect ("
+ sourceDb + ":" + getAccession() + ")");
- if (translationLength * 3 == (1 - codonStart + dna.getSequence().length))
+ int dnaLength = dna.getLength();
+ if (translationLength * 3 == (1 - codonStart + dnaLength))
{
System.err
.println("Not allowing for additional stop codon at end of cDNA fragment... !");
dnaToProteinMapping = new Mapping(product, exons, new int[] { 1,
translationLength }, 3, 1);
}
- if ((translationLength + 1) * 3 == (1 - codonStart + dna
- .getSequence().length))
+ if ((translationLength + 1) * 3 == (1 - codonStart + dnaLength))
{
System.err
.println("Allowing for additional stop codon at end of cDNA fragment... will probably cause an error in VAMSAs!");