Skip to content

Commit

Permalink
Merge pull request #77 from VirtualFlyBrain/dosumis-patch-1
Browse files Browse the repository at this point in the history
Update cross_server_tools.py
  • Loading branch information
Robbie1977 authored Sep 19, 2023
2 parents 993982a + a70db8f commit 85b66a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vfb_connect/cross_server_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand All @@ -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').
Expand Down

0 comments on commit 85b66a5

Please sign in to comment.