public static NucleotideSequence convertBit2ArrayToNSequence ( Bit2Array bar ) { SequenceBuilder < NucleotideSequence > seq = NucleotideSequence . ALPHABET . createBuilder ( ) . ensureCapacity ( bar . size ( ) ) ; for ( int i = 0 ; i < bar . size ( ) ; i ++ ) seq . append ( ( byte ) bar . get ( i ) ) ; return seq . createAndDestroy ( ) ; }
Used to read legacy file formats .