src/SequenceDNA.java
/**
     * returns new instance of SequenceDNA from subsequence of existing SequenceDNA
     * @param interval the interval of this sequence
     * @return subsequence in interval
     */
returns new instance of SequenceDNA from subsequence of existing SequenceDNA
@param interval the interval of this sequence
@return subsequence in interval
returns new instance of SequenceDNA from subsequence of existing SequenceDNA @param interval the interval of this sequence @return subsequence in interval
SequenceDNA subSequence(SeqInterval interval) {
        String desc = ">Subsequence of "+seqDescription+" "+interval.toString();
        String seqString = sequence.substring(interval.start(), interval.end() + 1);
        return new SequenceDNA(desc, seqString);
    }
SequenceDNA subSequence ( SeqInterval interval ) { String desc = ">Subsequence of " + seqDescription + " " + interval . toString ( ) ; String seqString = sequence . substring ( interval . start ( ) , interval . end ( ) + 1 ) ; return new SequenceDNA ( desc , seqString ) ; }
returns new instance of SequenceDNA from subsequence of existing SequenceDNA
 @param interval the interval of this sequence
 @return subsequence in interval
returns new instance of SequenceDNA from subsequence of existing SequenceDNA @param interval the interval of this sequence @return subsequence in interval