def get_expected_ploidy(gender, chrom):
    """
    Determine expected ploidy of call based on sample's gender and chromosome. Unknown genders are processed as diploid.
        Args:
            gender (string): M,F or U
            chrom (string): chromosome, PAR values should be represented as XY
        Returns
            int: value of expected ploidy, currently set at 1 or 2
    """
    if (gender == b"M" and chrom == "X") or chrom == "Y" or chrom == "MT":
        return 1
    return 2