class_docstr: Class for reading from native BED files.
  
  Most users will want to use BedReader instead, because it dynamically
  dispatches between reading native BED files and TFRecord files based on the
  filename's extension.
class_docstr_tok: ["Class","for","reading","from","native","BED","files",".","Most","users","will","want","to","use","BedReader","instead",",","because","it","dynamically","dispatches","between","reading","native","BED","files","and","TFRecord","files","based","on","the","filename","'s","extension","."]
docstr: Initializes a NativeBedReader.
  
  Args:
    input_path: string. A path to a resource containing BED records.
    num_fields: int. The number of fields to read in the BED. If unset or set
      to zero, all fields in the input are read.
docstr_tok: ["Initializes","a","NativeBedReader",".","Args",":","input_path",":","string",".","A","path","to","a","resource","containing","BED","records",".","num_fields",":","int",".","The","number","of","fields","to","read","in","the","BED",".","If","unset","or","set","to","zero",",","all","fields","in","the","input","are","read","."]
code: def __init__(self, input_path, num_fields=0):
      """Initializes a NativeBedReader.
  
      Args:
        input_path: string. A path to a resource containing BED records.
        num_fields: int. The number of fields to read in the BED. If unset or set
          to zero, all fields in the input are read.
      """
      super(NativeBedReader, self).__init__()
  
      bed_path = input_path.encode("utf8")
      options = bed_pb2.BedReaderOptions(num_fields=num_fields)
      self._reader = bed_reader.BedReader.from_file(bed_path, options)
      self.header = self._reader.header
  
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 NativeBedReader object from inherited base classes: genomics_reader with example: obj = NativeBedReader(input_path, num_fields)