

def loadRootJob(self):
    "\n        Loads the root job in the current job store.\n\n        :raises toil.job.JobException: If no root job is set or if the root job doesn't exist in\n                this job store\n        :return: The root job.\n        :rtype: toil.jobWrapper.JobWrapper\n        "
    try:
        with self.readSharedFileStream(self.rootJobStoreIDFileName) as f:
            rootJobStoreID = f.read()
    except NoSuchFileException:
        raise JobException('No job has been set as the root in this job store')
    if (not self.exists(rootJobStoreID)):
        raise JobException(("The root job '%s' doesn't exist. Either the Toil workflow is finished or has never been started" % rootJobStoreID))
    return self.load(rootJobStoreID)

dataset/ETHPy150Open BD2KGenomics/toil/src/toil/jobStores/abstractJobStore.py AbstractJobStore.loadRootJob/original