示例#1
0
 def testSearchContinuousSets(self):
     request = protocol.SearchContinuousSetsRequest()
     request.dataset_id = self.datasetId
     request.page_size = self.pageSize
     self.httpClient.search_continuous_sets(self.datasetId)
     self.httpClient._run_search_request.assert_called_once_with(
         request, "continuoussets", protocol.SearchContinuousSetsResponse)
示例#2
0
 def getAllContinuousSets(self):
     datasetId = self.getAllDatasets()[0].id
     path = 'continuoussets/search'
     request = protocol.SearchContinuousSetsRequest()
     request.dataset_id = datasetId
     responseData = self.sendSearchRequest(
         path, request, protocol.SearchContinuousSetsResponse)
     return responseData.continuous_sets
示例#3
0
    def search_continuous_sets(self, dataset_id):
        """
        Returns an iterator over the ContinuousSets fulfilling the specified
        conditions from the specified Dataset.

        :param str dataset_id: The ID of the
            :class:`ga4gh.protocol.Dataset` of interest.
        :return: An iterator over the :class:`ga4gh.protocol.ContinuousSet`
            objects defined by the query parameters.
        """
        request = protocol.SearchContinuousSetsRequest()
        request.dataset_id = dataset_id
        request.page_size = pb.int(self._page_size)
        return self._run_search_request(request, "continuoussets",
                                        protocol.SearchContinuousSetsResponse)