示例#1
0
    def getExpressionAnalysis(self, id_):
        """Return an expressionAnalysis record with the specified id.

        Or raises expressionAnalysisNotFoundException otherwise.
        """
        if id_ not in self._expressionAnalysisIdMap:
            raise exceptions.ObjectNotFoundException(id_)
        return self._expressionAnalysisIdMap[id_]
示例#2
0
    def getFusionDetection(self, id_):
        """Return a fusionDetection record with the specified id.

        Or raises fusionDetectionNotFoundException otherwise.
        """
        if id_ not in self._fusionDetectionIdMap:
            raise exceptions.ObjectNotFoundException(id_)
        return self._fusionDetectionIdMap[id_]
示例#3
0
    def getVariantCalling(self, id_):
        """Return a variantCalling record with the specified id.

        Or raises variantCallingNotFoundException otherwise.
        """
        if id_ not in self._variantCallingIdMap:
            raise exceptions.ObjectNotFoundException(id_)
        return self._variantCallingIdMap[id_]
示例#4
0
    def getAlignment(self, id_):
        """Return an Alignment record with the specified id.

        Or raises alignmentNotFoundException otherwise.
        """
        if id_ not in self._alignmentIdMap:
            raise exceptions.ObjectNotFoundException(id_)
        return self._alignmentIdMap[id_]
示例#5
0
    def getSequencing(self, id_):
        """Return a Sequencing record with the specified id.

        Or raises sequencingNotFoundException otherwise.
        """
        if id_ not in self._sequencingIdMap:
            raise exceptions.ObjectNotFoundException(id_)
        return self._sequencingIdMap[id_]
 def testObjectNotFoundException(self):
     exception = exceptions.ObjectNotFoundException()
     response = frontend.handleException(exception)
     self.assertEqual(response.status_code, 404)
     self.assertFalse(frontend.app.log_exception.called)