Skip to content

Serve DataSet summaries from VFBquery term info - #293

Merged
Robbie1977 merged 1 commit into
masterfrom
dataset-term-info-via-vfbquery
Oct 12, 2026
Merged

Robbie1977 merged 1 commit into
masterfrom
dataset-term-info-via-vfbquery

Conversation

@Robbie1977

Copy link
Copy Markdown
Contributor

get_DataSet_TermInfo(summary=True) now builds its summary from VFBquery's cached /get_term_info instead of the Neo4j Get JSON for DataSet Cypher, which walks has_source|SUBCLASSOF|INSTANCEOF* unbounded and can run for many minutes on large datasets (Neo4j 4.4 on the cluster pdb).

  • New cached_query.dataset_summary_from_term_info maps VFBquery -> the existing summary keys (label, symbol, id, tags, description, miniref, FlyBase, PMID, DOI).
  • Anything VFBquery can't serve (None / non-DataSet) falls back to the Neo4j query.
  • summary=False unchanged (VFBquery doesn't return the raw legacy JSON).

Checked against the legacy output for Ito2013: label, id, description, miniref, FlyBase, PMID and DOI are identical. Differences: symbol is always '' (not in VFBquery; empty for datasets anyway), tags come from VFBquery SuperTypes (Ito2013 lacks the legacy Adult), and DOI is now returned even when there is no PubMed ID (legacy gated it on PubMed, a bug).

The Neo4j 'Get JSON for DataSet' query walks has_source|SUBCLASSOF|INSTANCEOF*
unbounded and can run for many minutes on large datasets. get_DataSet_TermInfo
(summary=True) now maps VFBquery's cached get_term_info onto the same summary
dict, falling back to Neo4j for anything it cannot serve. summary=False is
unchanged.
@Robbie1977
Robbie1977 merged commit bcd8a9f into master Oct 12, 2026
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant