for (Mapping seqMapping : seqMappings)
{
- SequenceI cds = makeCdsSequence(dnaSeq, seqMapping, newMappings);
+ SequenceI cds = makeCdsSequence(dnaSeq, seqMapping);
cdsSequences.add(cds);
/*
/**
* Makes and returns a CDS-only sequence, where the CDS regions are identified
- * as the 'from' ranges of the mapping on the dna. Any sequence features on
- * the dna which overlap the CDS regions are copied to the new sequence.
+ * as the 'from' ranges of the mapping on the dna.
*
* @param dnaSeq
* nucleotide sequence
* @param seqMapping
* mappings from CDS regions of nucleotide
- * @param exonMappings
- * CDS-to-peptide mapping (to add to)
* @return
*/
protected static SequenceI makeCdsSequence(SequenceI dnaSeq,
- Mapping seqMapping, AlignedCodonFrame exonMappings)
+ Mapping seqMapping)
{
StringBuilder newSequence = new StringBuilder(dnaSeq.getLength());
final char[] dna = dnaSeq.getSequence();
newSequence.toString());
transferDbRefs(seqMapping.getTo(), cds);
+
return cds;
}