def toProtocolElement(self): """ Converts this VariantSet into its GA4GH protocol equivalent. """ protocolElement = protocol.VariantSet() protocolElement.id = self._id protocolElement.datasetId = "NotImplemented" protocolElement.referenceSetId = self._referenceSetId protocolElement.metadata = self.getMetadata() return protocolElement
def toProtocolElement(self): """ Converts this VariantSet into its GA4GH protocol equivalent. """ protocolElement = protocol.VariantSet() protocolElement.id = self.getId() protocolElement.datasetId = self.getParentContainer().getId() protocolElement.referenceSetId = self._referenceSetId protocolElement.metadata = self.getMetadata() protocolElement.name = self.getLocalId() return protocolElement