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 .