Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vfbquery/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
cache's version stamp can never drift apart.
"""

__version__ = "1.22.25"
__version__ = "1.22.26"
6 changes: 5 additions & 1 deletion src/vfbquery/vfb_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,11 @@ def term_info_parse_object(results, short_form):
q = TargetNeurons_to_schema(termInfo["Name"], {"short_form": vfbTerm.term.core.short_form})
queries.append(q)

if contains_all_tags(termInfo["SuperTypes"], ["Individual", "Neuron"]):
# Require the NBLAST facet: SimilarMorphologyTo is backed by
# has_similar_morphology_to edges carrying an NBLAST_score, which only
# NBLAST-tagged neurons have. Without it the query was attached to every
# individual neuron's menu (incl. MaleCNS/BANC) and returned 0 rows.
if contains_all_tags(termInfo["SuperTypes"], ["Individual", "Neuron", "NBLAST"]):
q = SimilarMorphologyTo_to_schema(termInfo["Name"], {"neuron": vfbTerm.term.core.short_form, "similarity_score": "NBLAST_score"})
queries.append(q)
# NeuronInputsTo is gated behind the extra "Demo" tag so it does NOT
Expand Down
Loading