def convertLocationHgvsC(self, hgvsc):
        """
        Accepts an annotation in HGVS notation and returns
        an AlleleLocation with populated fields.
        :param hgvsc:
        :return:
        """
        if isUnspecified(hgvsc):
            return None
        match = re.match(".*c.(\d+)(\D+)>(\D+)", hgvsc)
        if match:
            pos = int(match.group(1))
            if pos > 0:
                allLoc = self._createGaAlleleLocation()
                allLoc.start = pos - 1
                allLoc.referenceSequence = match.group(2)
                allLoc.alternateSequence = match.group(3)
                return allLoc
        return None
dataset/ETHPy150Open ga4gh/server/ga4gh/datamodel/variants.py/HtslibVariantAnnotationSet.convertLocationHgvsC/original