def is_alt_genotype(record, name):
    """Return if the named sample has a non-reference genotype call."""
    sample = record.samples[name]
    indices = sample.allele_indices
    return not (not indices or None in indices or indices.count(0) == len(indices) or max(indices) >= len(record.alleles))