import json


def read_lane_stats( lane_file ):
  """
  Read RUN001_Lxxx.stats.json file created in bbi-sciatac-demux pipeline run.
  These files are in the demux_out/fastqs_barcode directory. The run is always
  RUN001 and the Lxxx denotes the results for each lane; that is, L001, ...
  """
  lane_stats = json.load( lane_file )
  return( lane_stats )