message: bamleftalign: write the header, write BAM
diff: @@ -140,7 +140,7 @@ int main(int argc, char** argv) {
  }
  #else
  - SeqLib::BamWriter writer(isuncompressed ? SeqLib::SAM : SeqLib::BAM);
  + SeqLib::BamWriter writer(SeqLib::BAM);
  SeqLib::BamHeader hdr = reader.Header();
  if (hdr.isEmpty()) {
  cerr << "could not open header for input" << endl;
  @@ -152,6 +152,7 @@ int main(int argc, char** argv) {
  cerr << "could not open stdout for writing" << endl;
  exit(1);
  }
  + writer.WriteHeader();
  #endif
  // store the names of all the reference sequences in the BAM file
  