You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use template anatomy (not channel) for Template/thumbnail; link Type column
get_dataset_images built the Template column and thumbnail aligned-to text
and click ref from the registration-target channel node (VFBc_, _c label, no
symbol) instead of the template anatomy, so the Template column showed the
channel label. Switch those to template_anat (the depicts target, which carries
the symbol); the thumbnail image URL stays on the in_register_with channel edge
(irw.thumbnail). Also make the Type column a markdown link to the class across
every query that emits it (single-class and multi-class '; '-joined collects),
matching the Template column. Bumps to 1.15.1.
RETURN apoc.text.join([l IN collect(DISTINCT typ.label)WHERE l IS NOT NULL AND l <> ''], '|') AS type
2597
+
RETURN apoc.text.join([x IN collect(DISTINCT CASE WHEN typ.short_form IS NULL THEN NULL ELSE apoc.text.format('[%s](%s)', [coalesce(typ.symbol[0], typ.label), typ.short_form]) END) WHERE x IS NOT NULL], '; ') AS type
[x IN collect(DISTINCT CASE WHEN typ.short_form IS NULL THEN NULL ELSE apoc.text.format('[%s](%s)', [coalesce(typ.symbol[0], typ.label), typ.short_form]) END) WHERE x IS NOT NULL],
OPTIONAL MATCH (target)-[:INSTANCEOF]->(typ:Class)
3284
3284
WITH target, synapse_counts,
3285
3285
apoc.text.join(
3286
-
collect(DISTINCT coalesce(typ.label, '')),
3286
+
[x IN collect(DISTINCT CASE WHEN typ.short_form IS NULL THEN NULL ELSE apoc.text.format('[%s](%s)', [coalesce(typ.symbol[0], typ.label), typ.short_form]) END) WHERE x IS NOT NULL],
OPTIONAL MATCH (primary)-[:INSTANCEOF]->(typ:Class)
4959
-
RETURN apoc.text.join([l IN collect(DISTINCT typ.label)WHERE l IS NOT NULL AND l <> ''], '|') AS type
4959
+
RETURN apoc.text.join([x IN collect(DISTINCT CASE WHEN typ.short_form IS NULL THEN NULL ELSE apoc.text.format('[%s](%s)', [coalesce(typ.symbol[0], typ.label), typ.short_form]) END) WHERE x IS NOT NULL], '; ') AS type
4960
4960
}}
4961
4961
CALL {{
4962
4962
WITH primary
@@ -5284,10 +5284,10 @@ def get_dataset_images(dataset_short_form: str, return_dataframe=True, limit: in
apoc.text.join(coalesce(primary.uniqueFacets, []), '|') AS tags,
5287
-
typ.label AS type,
5288
-
REPLACE(apoc.text.format("[%s](%s)",[COALESCE(template.symbol[0],template.label),template.short_form]), '[null](null)', '') AS template,
5287
+
REPLACE(apoc.text.format("[%s](%s)",[COALESCE(typ.symbol[0],typ.label),typ.short_form]), '[null](null)', '') AS type,
5288
+
REPLACE(apoc.text.format("[%s](%s)",[COALESCE(template_anat.symbol[0],template_anat.label),template_anat.short_form]), '[null](null)', '') AS template,
5289
5289
technique.label AS technique,
5290
-
REPLACE(apoc.text.format("[](%s)",[COALESCE(primary.symbol[0],primary.label) + " aligned to " + COALESCE(template.symbol[0],template.label), REPLACE(COALESCE(irw.thumbnail[0],""),"thumbnailT.png","thumbnail.png"), COALESCE(primary.symbol[0],primary.label) + " aligned to " + COALESCE(template.symbol[0],template.label), template.short_form + "," + primary.short_form]), "[](null)", "") AS thumbnail"""
5290
+
REPLACE(apoc.text.format("[](%s)",[COALESCE(primary.symbol[0],primary.label) + " aligned to " + COALESCE(template_anat.symbol[0],template_anat.label), REPLACE(COALESCE(irw.thumbnail[0],""),"thumbnailT.png","thumbnail.png"), COALESCE(primary.symbol[0],primary.label) + " aligned to " + COALESCE(template_anat.symbol[0],template_anat.label), template_anat.short_form + "," + primary.short_form]), "[](null)", "") AS thumbnail"""
0 commit comments