def get_ixmc_barcode(filename, corpse_col=None):
    """
    Parameters
    ----------
    filename : str
      Name of .txt file containing well-level DDD data
    
    Returns
    -------
    barcode : str
      Plate barcode 
    """
    headers = []
    f = open(filename)
    for _ in range(8):
        headers.append(f.readline())
    barcode = headers[4].split('=')[1].split('"\n')[0]
    # if '_' not in barcode:
    #     date = barcode[:6]
    #     plate_number = re.search(r'I*(.*)', barcode).group(1)
    #     filler = re.search(r'%s([^"]*)%s' % (date, plate_number)).group(1)
    columns = headers[-1].split('"\t"')
    columns = [s.split('"\n')[0] for s in columns]
    if corpse_col in columns:
        barcode = 'corpse_%s' % barcode
    f.close()    
    return barcode