def findJobStoreForUrl(url):
    """
    Returns the AbstractJobStore subclass that supports the given URL.

    :param urlparse.ParseResult url: The given URL
    :rtype: toil.jobStore.AbstractJobStore
    """
    for cls in getJobStoreClasses():
        if cls._supportsUrl(url):
            return cls
    raise RuntimeError("No existing job store supports the URL '%s'" % url)
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/jobStores/abstractJobStore.py/findJobStoreForUrl/original