def __init__(self, parentContainer, localId, dataDir,
                 backend, variantSet):
        super(HtslibVariantAnnotationSet, self).__init__(
            parentContainer, localId, dataDir, backend)
        self.compoundIdClass = datamodel.VariantAnnotationSetCompoundId
        self._variantSetId = variantSet.getCompoundId()
        self._variantSet = variantSet
        self._compoundId = datamodel.VariantAnnotationSetCompoundId(
            self.getCompoundId(), 'variantannotations')
        self._sequenceOntology = backend.getOntologyMap('sequence_ontology')
        self._creationTime = datetime.datetime.now().isoformat() + "Z"
        self._updatedTime = datetime.datetime.now().isoformat() + "Z"
        # Annotations are currently either from VEP or SNPEff. If they are
        # not from VEP we assume they are from SNPEff.
        # TODO Detect this more rigorously at import time and throw an
        # exception if we don't see the formats we're expecting.
        self._isVep = "VEP" in self.toProtocolElement().analysis.info
        self._isCsq = self.hasConsequenceField(dataDir)
        # Parse the annotation creation time out of the VCF header.
        # TODO Check this at import time, and raise an exception if the
        # time is not in the expected format.
        self._annotationCreatedDateTime = self._creationTime
        for r in self.getMetadata().records:
            # TODO handle more date formats
            if r.key == "created":
                self._annotationCreatedDateTime = datetime.datetime.strptime(
                    r.value, "%Y-%m-%d").isoformat() + "Z"
dataset/ETHPy150Open ga4gh/server/ga4gh/datamodel/variants.py/HtslibVariantAnnotationSet.__init__/original