def __init__(self, localId, dataPath): self._backend = backend.Backend(datarepo.AbstractDataRepository()) self._referenceSet = None self._dataset = datasets.AbstractDataset("ds") self._readGroupInfos = {} self._readGroupSetInfo = None self._samFile = pysam.AlignmentFile(dataPath) self._readReferences() super(ReadGroupSetTest, self).__init__(localId, dataPath) self._readAlignmentInfo()
def setUp(self): class FakeRequest(object): pass class FakeTopLevelObject(object): def toProtocolElement(self): return self self.request = FakeRequest() self.request.pageToken = None self.numObjects = 3 self.objects = [FakeTopLevelObject() for j in range(self.numObjects)] self.backend = backend.Backend(datarepo.AbstractDataRepository())
def setUp(self): self._backend = backend.Backend(datarepo.AbstractDataRepository()) self._referenceSet = references.AbstractReferenceSet(self._backend) self._reference = references.AbstractReference(self._referenceSet, "ref")
def setUp(self): self._variantSetName = "testVariantSet" self._backend = backend.Backend(datarepo.AbstractDataRepository()) self._dataset = datasets.AbstractDataset(self._backend) self._variantSet = variants.AbstractVariantSet(self._dataset, self._variantSetName)
def setUp(self): self._featureSetName = "testFeatureSet" self._backend = backend.Backend(datarepo.AbstractDataRepository()) self._dataset = datasets.AbstractDataset(self._backend) self._featureSet = features.AbstractFeatureSet(self._dataset, self._featureSetName)
def setUp(self): self._backend = backend.Backend(datarepo.AbstractDataRepository()) self._dataRepo = self._backend.getDataRepository()