let write0 header alignments oc = let oz = Bgzf.of_out_channel oc in write_header header oz ; Stream.iter alignments ~f:(write_alignment header oz) ; Bgzf.dispose_out oz