import csv


def read_manifest(instream):
    """Read manifest file into a dictionary

    Parameters
    ----------
    instream : readable file like object
    """
    reader = csv.reader(instream, delimiter="\t")
    header = None
    metadata = {}
    for row in reader:
        if header is None:
            header = row
        else:
            metadata[row[0]] = row[1]
    return metadata