code: public static Bit2Array convertNSequenceToBit2Array(NucleotideSequence seq) {
          if (seq.containWildcards())
              throw new IllegalArgumentException("Sequences with wildcards are not supported.");
          Bit2Array bar = new Bit2Array(seq.size());
          for (int i = 0; i < seq.size(); i++)
              bar.set(i, seq.codeAt(i));
          return bar;
      }
docs: Used to write legacy file formats.
  
  @return Bit2Array representation of nucleotide sequence