def get_patient_mhc_haplotype(job, patient_dict):
    """
    Convenience function to get the mhc haplotype from the patient dict

    :param dict patient_dict: dict of patient info
    :return: The MHCI and MHCII haplotypes
    :rtype: toil.fileStore.FileID
    """
    haplotype_archive = job.fileStore.readGlobalFile(patient_dict['hla_haplotype_files'])
    haplotype_archive = untargz(haplotype_archive, os.getcwd())
    output_dict = {}
    for filename in 'mhci_alleles.list', 'mhcii_alleles.list':
        output_dict[filename] = job.fileStore.writeGlobalFile(os.path.join(haplotype_archive,
                                                                           filename))
    return output_dict
Convenience function to get the mhc haplotype from the patient dict

    :param dict patient_dict: dict of patient info
    :return: The MHCI and MHCII haplotypes
    :rtype: toil.fileStore.FileID