Example #1
0
 def testTopLevelIdsUnique(self):
     datasetId = "a"
     idStr = "b"
     dataset = datasets.Dataset(datasetId)
     readGroupSet = reads.AbstractReadGroupSet(dataset, idStr)
     variantSet = variants.AbstractVariantSet(dataset, idStr)
     self.assertNotEqual(readGroupSet.getId(), variantSet.getId())
 def setUp(self):
     self.request = protocol.SearchReadsRequest()
     self.request.referenceId = "chr1"
     self.backend = backend.SimulatedBackend()
     self.datasetId = self.backend.getDatasetIds()[0]
     self.dataset = self.backend.getDataset(self.datasetId)
     self.readGroupSetLocalId = "aReadGroupSet"
     self.readGroupLocalId = "aReadGroup"
     self.readGroupSet = reads.AbstractReadGroupSet(
         self.dataset, self.readGroupSetLocalId)
Example #3
0
 def testGetReadGroup(self):
     path = "/readgroups"
     for dataset in self.backend.getDatasets():
         for readGroupSet in dataset.getReadGroupSets():
             for readGroup in readGroupSet.getReadGroups():
                 responseObject = self.sendGetObject(
                     path, readGroup.getId(), protocol.ReadGroup)
                 self.verifyReadGroupsEqual(responseObject, readGroup)
             for badId in self.getBadIds():
                 readGroup = reads.AbstractReadGroup(readGroupSet, badId)
                 self.verifyGetMethodFails(path, readGroup.getId())
         for badId in self.getBadIds():
             readGroupSet = reads.AbstractReadGroupSet(dataset, badId)
             self.verifyGetMethodFails(path, readGroupSet.getId())
     for badId in self.getBadIds():
         self.verifyGetMethodFails(path, badId)
Example #4
0
 def getReadGroupSet(self):
     return reads.AbstractReadGroupSet(self.getDataset(), "readGroupSet")