class_docstr: Class for reading from native BedGraph files.
  
  Most users will want to use BedGraphReader instead, because it dynamically
  dispatches between reading native BedGraph files and TFRecord files based on
  the filename's extension.
class_docstr_tok: ["Class","for","reading","from","native","BedGraph","files",".","Most","users","will","want","to","use","BedGraphReader","instead",",","because","it","dynamically","dispatches","between","reading","native","BedGraph","files","and","TFRecord","files","based","on","the","filename","'s","extension","."]
docstr: Initializes a NativeBedGraphReader.
  
  Args:
    input_path: string. A path to a resource containing BedGraph records.
    num_fields: int. The number of fields to read in the BedGraph. If unset or
      set to zero, all fields in the input are read.
docstr_tok: ["Initializes","a","NativeBedGraphReader",".","Args",":","input_path",":","string",".","A","path","to","a","resource","containing","BedGraph","records",".","num_fields",":","int",".","The","number","of","fields","to","read","in","the","BedGraph",".","If","unset","or","set","to","zero",",","all","fields","in","the","input","are","read","."]
code: def __init__(self, input_path, num_fields=0):
      """Initializes a NativeBedGraphReader.
  
      Args:
        input_path: string. A path to a resource containing BedGraph records.
        num_fields: int. The number of fields to read in the BedGraph. If unset or
          set to zero, all fields in the input are read.
      """
      super(NativeBedGraphReader, self).__init__()
  
      bedgraph_path = input_path.encode("utf8")
      self._reader = bedgraph_reader.BedGraphReader.from_file(
          bedgraph_path
      )
  
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 bedgraph_reader
  from third_party.nucleus.io.python import bedgraph_writer
  from third_party.nucleus.protos import bedgraph_pb2
label_desc: Use image node_id 1 to create a new NativeBedGraphReader object from inherited base classes: genomics_reader with example: obj = NativeBedGraphReader(input_path, num_fields)