+ /**
+ * Overrides this method to trivially return a range which is the whole of the
+ * nucleotide sequence. This is both faster than scanning for CDS features,
+ * and also means we don't need to keep CDS features on CDS sequence (where
+ * they are redundant information).
+ */
+ @Override
+ protected int getCdsRanges(SequenceI dnaSeq, List<int[]> ranges)
+ {
+ int len = dnaSeq.getLength();
+ ranges.add(new int[] { 1, len });
+ return len;
+ }
+