count += computePeptideVariants(peptide, peptidePos, codonVariants);
}
- /*
- * sort to get sequence features in start position order
- * - would be better to store in Sequence as a TreeSet or NCList?
- */
- // if (peptide.getSequenceFeatures() != null)
- // {
- // Arrays.sort(peptide.getSequenceFeatures(),
- // new Comparator<SequenceFeature>()
- // {
- // @Override
- // public int compare(SequenceFeature o1, SequenceFeature o2)
- // {
- // int c = Integer.compare(o1.getBegin(), o2.getBegin());
- // return c == 0 ? Integer.compare(o1.getEnd(), o2.getEnd())
- // : c;
- // }
- // });
- // }
return count;
}