From f164febe2999886fcdd813793d8ff3c48c126e30 Mon Sep 17 00:00:00 2001 From: Chris Mungall Date: Tue, 13 Feb 2018 18:07:47 -0800 Subject: [PATCH] Update assoc_factory.py Allow pass-through of solr URL --- ontobio/assoc_factory.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ontobio/assoc_factory.py b/ontobio/assoc_factory.py index a21e30c4..7e14eae6 100644 --- a/ontobio/assoc_factory.py +++ b/ontobio/assoc_factory.py @@ -31,7 +31,7 @@ def __init__(self): initializes based on an ontology name """ - def create(self, ontology=None,subject_category=None,object_category=None,evidence=None,taxon=None,relation=None, file=None, fmt=None): + def create(self, ontology=None,subject_category=None,object_category=None,evidence=None,taxon=None,relation=None, file=None, fmt=None, solr_url=None): """ creates an AssociationSet @@ -61,7 +61,8 @@ def create(self, ontology=None,subject_category=None,object_category=None,eviden assocs = bulk_fetch_cached(subject_category=subject_category, object_category=object_category, evidence=evidence, - taxon=taxon) + taxon=taxon, + url=solr_url) logging.info("Creating map for {} subjects".format(len(assocs)))