示例#1
0
 def getExpressionAnalysis(self, id_):
     """
     Returns the expressionAnalysis with the specified id, or raises
     a expressionAnalysisNotFoundException otherwise.
     """
     if id_ not in self._expressionAnalysisIdMap:
         raise exceptions.ObjectNotFoundException(id_)
     return self._expressionAnalysisIdMap[id_]
示例#2
0
 def getFusionDetection(self, id_):
     """
     Returns the fusionDetection with the specified id, or raises
     a fusionDetectionNotFoundException otherwise.
     """
     if id_ not in self._fusionDetectionIdMap:
         raise exceptions.ObjectNotFoundException(id_)
     return self._fusionDetectionIdMap[id_]
示例#3
0
 def getVariantCalling(self, id_):
     """
     Returns the variantCalling with the specified id, or raises
     a variantCallingNotFoundException otherwise.
     """
     if id_ not in self._variantCallingIdMap:
         raise exceptions.ObjectNotFoundException(id_)
     return self._variantCallingIdMap[id_]
示例#4
0
 def getAlignment(self, id_):
     """
     Returns the alignment with the specified id, or raises
     a alignmentNotFoundException otherwise.
     """
     if id_ not in self._alignmentIdMap:
         raise exceptions.ObjectNotFoundException(id_)
     return self._alignmentIdMap[id_]
示例#5
0
 def getSequencing(self, id_):
     """
     Returns the sequencing with the specified id, or raises
     a sequencingNotFoundException otherwise.
     """
     if id_ not in self._sequencingIdMap:
         raise exceptions.ObjectNotFoundException(id_)
     return self._sequencingIdMap[id_]
示例#6
0
 def testObjectNotFoundException(self):
     exception = exceptions.ObjectNotFoundException()
     response = frontend.handleException(exception)
     self.assertEquals(response.status_code, 404)
     self.assertFalse(frontend.app.log_exception.called)