from typing import Dict
from typing import Any


def read_truth_bedfile(truth_bed: str) -> Dict[str, Dict[str, Any]]:
  """Reads in complete truth bed file and returns dict."""
  bed_coords = {}
  with open(truth_bed, 'r') as bedfile:
    for line in bedfile:
      contig, begin, end, ccs_seqname = line.strip().split('\t')[:4]
      bed_record = {'contig': contig, 'begin': int(begin), 'end': int(end)}
      bed_coords[ccs_seqname] = bed_record
  return bed_coords