Пример #1
0
 def testSearchExpressionLevels(self):
     request = protocol.SearchExpressionLevelsRequest()
     request.rna_quantification_id = self.rnaQuantificationId
     request.threshold = self.threshold
     request.page_size = self.pageSize
     self.httpClient.search_expression_levels(self.rnaQuantificationId,
                                              threshold=self.threshold)
     self.httpClient._run_search_request.assert_called_once_with(
         request, "expressionlevels",
         protocol.SearchExpressionLevelsResponse)
Пример #2
0
    def search_expression_levels(self,
                                 rna_quantification_id="",
                                 names=[],
                                 threshold=0.0):
        """
        Returns an iterator over the ExpressionLevel objects from the server

        :param str feature_ids: The IDs of the
            :class:`ga4gh.protocol.Feature` of interest.
        :param str rna_quantification_id: The ID of the
            :class:`ga4gh.protocol.RnaQuantification` of interest.
        :param float threshold: Minimum expression of responses to return.
        """
        request = protocol.SearchExpressionLevelsRequest()
        request.rna_quantification_id = rna_quantification_id
        request.names.extend(names)
        request.threshold = threshold
        request.page_size = pb.int(self._page_size)
        return self._run_search_request(
            request, "expressionlevels",
            protocol.SearchExpressionLevelsResponse)
Пример #3
0
 def sendExpressionLevelsSearch(self):
     request = protocol.SearchExpressionLevelsRequest()
     request.rna_quantification_id = self.rnaQuantificationId
     return self.sendPostRequest('/expressionlevels/search', request)