from typing import Dict


def collect_dataset(input_file: str) -> Dict:
    """Read and parse lines from dataset files

    Args:
        input_file (str): path to input file

    Returns:
        Dict: return dict of dataset
    """
    dataset = {}
    lcount = 0
    with open(input_file, "r", encoding="latin-1") as f:
        for line in f:
            lcount += 1
            if lcount == 1:
                dataset["header"] = line
                continue
            parts = line.split("\t")
            assert len(parts) >= 6, f"Error: {line}"
            dataset[parts[0]] = line
    return dataset