public static Sequence createSequence(final org.biojava.bio.seq.Sequence sequence) {
        checkNotNull(sequence);

        Sequence s = new Sequence();
        if (!DNATools.getDNA().equals(sequence.getAlphabet())) {
            throw new IllegalArgumentException("alphabet must be DNA");
        }
        s.setValue(sequence.seqString());
        return s;
    }
public static Sequence createSequence ( final org . biojava . bio . seq . Sequence sequence ) { checkNotNull ( sequence ) ; Sequence s = new Sequence ( ) ; if ( ! DNATools . getDNA ( ) . equals ( sequence . getAlphabet ( ) ) ) { throw new IllegalArgumentException ( "alphabet must be DNA" ) ; } s . setValue ( sequence . seqString ( ) ) ; return s ; }
Create and return a new HML Sequence from the specified sequence.

@param sequence sequence, must not be null, and alphabet must be DNA
@return a new HML Sequence created from the specified sequence.