public static String bytesToSequenceIncCG(final byte[] seq,final int start,final int length){
  final StringBuilder sb=new StringBuilder();
  for (int i=start; i < start + length; i++) {
    if (i < 0 || i >= seq.length) {
      sb.append('N');
    }
 else     if (seq[i] != 5) {
      sb.append(BASES[seq[i]]);
    }
  }
  return sb.toString();
}

public static String bytesToSequenceIncCG ( final byte [ ] seq , final int start , final int length ) { final StringBuilder sb = new StringBuilder ( ) ; for ( int i = start ; i < start + length ; i ++ ) { if ( i < 0 || i >= seq . length ) { sb . append ( 'N' ) ; } else if ( seq [ i ] != 5 ) { sb . append ( BASES [ seq [ i ] ] ) ; } } return sb . toString ( ) ; }
convert a binary dna sequence to a human readable string using uppercase characters
