Пример #1
0
 def _checkMetadata(self, variantFile):
     """
     Checks that metadata is consistent
     """
     metadata = self._getMetadataFromVcf(variantFile)
     if self._metadata is not None and self._metadata != metadata:
         raise exceptions.InconsistentMetaDataException(
             variantFile.filename)
Пример #2
0
 def _updateMetadata(self, variantFile):
     """
     Updates the metadata for his variant set based on the specified
     variant file, and ensures that it is consistent with already
     existing metadata.
     """
     metadata = self._getMetadataFromVcf(variantFile)
     if self._metadata is None:
         self._metadata = metadata
     else:
         if self._metadata != metadata:
             raise exceptions.InconsistentMetaDataException(
                 variantFile.filename)