def _convertAnnotations(
            self, annotations, variant, hgvsG, transcriptConverter):
        transcriptEffects = []
        if annotations is not None:
            for index, ann in enumerate(annotations):
                altshgvsG = ""
                if hgvsG is not None:
                    # The HGVS.g field contains an element for
                    # each alternate allele
                    altshgvsG = hgvsG[len(variant.alternateBases) % index]
                transcriptEffects.append(
                    transcriptConverter(ann, altshgvsG))
        return transcriptEffects
dataset/ETHPy150Open ga4gh/server/ga4gh/datamodel/variants.py/HtslibVariantAnnotationSet._convertAnnotations/swapped operands of `%`