def get_percentages(MAT, INS, DEL, numref):
    """Calculates percentages given number of reference segments."""
    MAT = float(MAT) / float(numref) * 100.0
    INS = float(INS) / float(numref) * 100.0
    DEL = float(DEL) / float(numref) * 100.0
    return [MAT, INS, DEL]