import csv


def func_read_sample_mappings( str_file_sample_mappings ):
  """
  Read in a file that maps between MAF ids and samples (VCF files)
  This is a tab delimited file.
  MAF_Id\tVCF_file

  Return a dict[ MAF_id ] = VCF_name
  """
  dict_sample_mappings = {}
  f_skip = True

  with open( str_file_sample_mappings, "r" ) as hndl_mappings:
    for lstr_line in csv.reader( hndl_mappings, delimiter="\t" ):
      if f_skip:
        f_skip = False
        continue
      dict_sample_mappings[ lstr_line[ 0 ] ] = lstr_line[ 1 ]
  return dict_sample_mappings