public SequenceI[] getSequencesArray()
{
+ if (sequences==null)
+ return null;
SequenceI[] reply = new SequenceI[sequences.size()];
for (int i = 0; i < sequences.size(); i++)
{
}
AlignedCodonFrame[] t = new AlignedCodonFrame[codonFrameList.length+1];
System.arraycopy(codonFrameList, 0, t, 0, codonFrameList.length);
- t[codonFrameList.length+1] = codons;
+ t[codonFrameList.length] = codons;
codonFrameList = t;
}
for (int f=0;f<codonFrameList.length; f++)
{
if (codonFrameList[f].involvesSequence(seq))
- cframes.add(codonFrameList[f]);
+ cframes.addElement(codonFrameList[f]);
}
if (cframes.size()==0)
return null;