return dataset;
}
- public boolean padGaps() {
+ public boolean padGaps()
+ {
boolean modified=false;
//Remove excess gaps from the end of alignment
maxLength++;
+ int cLength;
for (int i = 0; i < sequences.size();
i++)
{
current = getSequenceAt(i);
+ cLength = current.getLength();
- if (current.getLength() < maxLength)
+ if (cLength < maxLength)
{
- current.insertCharAt(maxLength - 1, gapCharacter);
+ current.insertCharAt(cLength,
+ maxLength-cLength, gapCharacter);
modified=true;
}
else if(current.getLength() > maxLength)