From d2310aabdfdb14965ee37a5481fdcc8464f0f1b7 Mon Sep 17 00:00:00 2001 From: David Osumi-Sutherland Date: Sun, 13 Mar 2022 21:00:37 +0000 Subject: [PATCH] Update cross_server_tools.py Fixes #68 + some doc typos. --- src/vfb_connect/cross_server_tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vfb_connect/cross_server_tools.py b/src/vfb_connect/cross_server_tools.py index 7fd8a82b..25164f7f 100644 --- a/src/vfb_connect/cross_server_tools.py +++ b/src/vfb_connect/cross_server_tools.py @@ -142,7 +142,7 @@ def get_superclasses(self, class_expression, query_by_label=True, direct=False, :rtype: list of VFB_json or summary_report_json """ if not re.search("'", class_expression): class_expression = "'" + class_expression + "'" - terms = self.oc.get_superclasses("%s" % class_expression, query_by_label=query_by_label) + terms = self.oc.get_superclasses("%s" % class_expression, query_by_label=query_by_label, direct=direct) return self.neo_query_wrapper.get_type_TermInfo(list(map(gen_short_form, terms)), summary=summary) @@ -234,7 +234,7 @@ def get_neurons_downstream_of(self, neuron, weight, classification=None, query_b return_dataframe=return_dataframe) def get_neurons_upstream_of(self, neuron, weight, classification=None, query_by_label=True, return_dataframe=True): - """"Get all neurons downstream of individual `neuron` + """"Get all neurons upstream of individual `neuron` :param neuron: the name or id of a particular neuron (dependent on query_by_label setting) :param weight: limit returned neurons to those with connected by >= weight synapses @@ -249,7 +249,7 @@ def get_neurons_upstream_of(self, neuron, weight, classification=None, query_by_ def get_connected_neurons_by_type(self, upstream_type, downstream_type, weight, query_by_label=True, return_dataframe=True): - """Get all synaptic connections between individual neurons of `upstream_type` and `dowstream_type` where + """Get all synaptic connections between individual neurons of `upstream_type` and `downstream_type` where synapse count >= `weight`. Warning: Does not support Class Expressions. :parm upstream_type: The upstream neuron type (e.g. 'GABAeric neuron').