class_docstr: Class for writing to native BED files.
  
  Most users will want BedWriter, which will write to either native BED
  files or TFRecord files, based on the output filename's extension.
class_docstr_tok: ["Class","for","writing","to","native","BED","files",".","Most","users","will","want","BedWriter",",","which","will","write","to","either","native","BED","files","or","TFRecord","files",",","based","on","the","output","filename","'s","extension","."]
docstr: Initializer for NativeBedWriter.
  
  Args:
    output_path: str. The path to which to write the BED file.
    header: nucleus.genomics.v1.BedHeader. The header that defines all
      information germane to the constituent BED records.
docstr_tok: ["Initializer","for","NativeBedWriter",".","Args",":","output_path",":","str",".","The","path","to","which","to","write","the","BED","file",".","header",":","nucleus.genomics.v1.BedHeader",".","The","header","that","defines","all","information","germane","to","the","constituent","BED","records","."]
code: def __init__(self, output_path, header=None):
      """Initializer for NativeBedWriter.
  
      Args:
        output_path: str. The path to which to write the BED file.
        header: nucleus.genomics.v1.BedHeader. The header that defines all
          information germane to the constituent BED records.
      """
      super(NativeBedWriter, self).__init__()
      if header is None:
          header = bed_pb2.BedHeader(num_fields=3)
      writer_options = bed_pb2.BedWriterOptions()
      self._writer = bed_writer.BedWriter.to_file(
          output_path, header, writer_options
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from third_party.nucleus.io import genomics_reader
  from third_party.nucleus.io import genomics_writer
  from third_party.nucleus.io.python import bed_reader
  from third_party.nucleus.io.python import bed_writer
  from third_party.nucleus.protos import bed_pb2
label_desc: Use image node_id 1 to create a new NativeBedWriter object from inherited base classes: genomics_writer with example: obj = NativeBedWriter(output_path, header)