Skip to content

Commit

Permalink
Ensuring all queries return summary by default
Browse files Browse the repository at this point in the history
Ref #130
  • Loading branch information
Robbie1977 committed Aug 8, 2024
1 parent f54b844 commit 8f9eb1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vfb_connect/cross_server_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def lookup_id(self, key, return_short_form=True):
# :rtype: [ReturnType]
# """

def get_terms_by_region(self, region, cells_only=False, verbose=False, query_by_label=True, summary=False):
def get_terms_by_region(self, region, cells_only=False, verbose=False, query_by_label=True, summary=True):
"""Generate TermInfo reports for all terms relevant to annotating some specific region,
optionally limited to cells.
Expand All @@ -115,7 +115,7 @@ def get_terms_by_region(self, region, cells_only=False, verbose=False, query_by_
return self.neo_query_wrapper.get_type_TermInfo(list(map(gen_short_form, terms)),
summary=summary)

def get_subclasses(self, class_expression, query_by_label=True, direct=False, summary=False):
def get_subclasses(self, class_expression, query_by_label=True, direct=False, summary=True):
"""Generate JSON report of all subclasses of class_expression.
:param class_expression: A valid OWL class expression, e.g. the name of a class.
Expand All @@ -131,7 +131,7 @@ def get_subclasses(self, class_expression, query_by_label=True, direct=False, su
return self.neo_query_wrapper.get_type_TermInfo(list(map(gen_short_form, terms)),
summary=summary)

def get_superclasses(self, class_expression, query_by_label=True, direct=False, summary=False):
def get_superclasses(self, class_expression, query_by_label=True, direct=False, summary=True):
"""Generate JSON report of all superclasses of class_expression.
:param class_expression: A valid OWL class expression, e.g. the name of a class.
Expand All @@ -146,7 +146,7 @@ def get_superclasses(self, class_expression, query_by_label=True, direct=False,
return self.neo_query_wrapper.get_type_TermInfo(list(map(gen_short_form, terms)),
summary=summary)

def get_instances(self, class_expression, query_by_label=True, summary=False):
def get_instances(self, class_expression, query_by_label=True, summary=True):
"""Generate JSON report of all instances of class_expression. Instances are specific examples
of a type/class, e.g. a neuron of type DA1 adPN from the FAFB_catmaid database.
Expand Down Expand Up @@ -296,7 +296,7 @@ def get_connected_neurons_by_type(self, upstream_type, downstream_type, weight,
else:
return dc

def get_instances_by_dataset(self, dataset, summary=False):
def get_instances_by_dataset(self, dataset, summary=True):
"""Get JSON report of all individuals in a dataset
:param dataset: dataset ID
Expand Down

0 comments on commit 8f9eb1e

Please sign in to comment.