Skip to content

Commit b85173a

Browse files
committed
Tried regenerating schema to properly show pmids
1 parent 0e1d9fc commit b85173a

2 files changed

Lines changed: 228 additions & 18 deletions

File tree

‎demo_network/schema.json‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{
44
"node": "authors",
55
"example": [
6-
"A Ma'ayan",
7-
"DJB Clarke"
6+
"JJ Bieker",
7+
"TA Blenkinsop"
88
],
99
"display": [
1010
{
@@ -26,18 +26,18 @@
2626
"relation": [],
2727
"search": [
2828
"id",
29-
"label",
30-
"PMIDS"
29+
"label"
3130
]
3231
},
3332
{
34-
"node": "pmid",
33+
"node": "pmids",
3534
"example": [
36-
"37214901"
35+
38812546,
36+
36884236
3737
],
3838
"display": [
3939
{
40-
"label": "pmid ID",
40+
"label": "pmids ID",
4141
"text": "${id}",
4242
"type": "text"
4343
},
@@ -49,21 +49,21 @@
4949
{
5050
"label": "url",
5151
"text": "${url}",
52-
"type": "url"
52+
"href": "${url}",
53+
"type": "link"
5354
}
5455
],
5556
"relation": [],
5657
"search": [
5758
"id",
58-
"label",
59-
"url"
60-
]
59+
"label"
60+
]
6161
}
6262
],
6363
"edges": [
6464
{
6565
"match": [
66-
"Coauthors"
66+
"published"
6767
],
6868
"selected": true,
6969
"display": [
@@ -81,17 +81,12 @@
8181
"label": "target",
8282
"text": "${target}",
8383
"type": "text"
84-
},
85-
{
86-
"label": "Citations",
87-
"text": "${Citations}",
88-
"type": "text"
8984
}
9085
]
9186
},
9287
{
9388
"match": [
94-
"published"
89+
"Coauthors"
9590
],
9691
"selected": true,
9792
"display": [
@@ -109,6 +104,11 @@
109104
"label": "target",
110105
"text": "${target}",
111106
"type": "text"
107+
},
108+
{
109+
"label": "Citations",
110+
"text": "${Citations}",
111+
"type": "text"
112112
}
113113
]
114114
}

‎demo_network/schema.json.BAK‎

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
{
2+
"nodes": [
3+
{
4+
"node": "authors",
5+
"example": [
6+
"A Ma'ayan",
7+
"DJB Clarke"
8+
],
9+
"display": [
10+
{
11+
"label": "authors ID",
12+
"text": "${id}",
13+
"type": "text"
14+
},
15+
{
16+
"label": "label",
17+
"text": "${label}",
18+
"type": "text"
19+
},
20+
{
21+
"label": "PMIDS",
22+
"text": "${PMIDS}",
23+
"type": "text"
24+
}
25+
],
26+
"relation": [],
27+
"search": [
28+
"id",
29+
"label",
30+
"PMIDS"
31+
]
32+
},
33+
{
34+
"node": "pmid",
35+
"example": [
36+
"37214901"
37+
],
38+
"display": [
39+
{
40+
"label": "pmid ID",
41+
"text": "${id}",
42+
"type": "text"
43+
},
44+
{
45+
"label": "label",
46+
"text": "${label}",
47+
"type": "text"
48+
},
49+
{
50+
"label": "url",
51+
"text": "${url}",
52+
"type": "url"
53+
}
54+
],
55+
"relation": [],
56+
"search": [
57+
"id",
58+
"label",
59+
"url"
60+
]
61+
}
62+
],
63+
"edges": [
64+
{
65+
"match": [
66+
"Coauthors"
67+
],
68+
"selected": true,
69+
"display": [
70+
{
71+
"label": "source",
72+
"text": "${source}",
73+
"type": "text"
74+
},
75+
{
76+
"label": "relation",
77+
"text": "${relation}",
78+
"type": "text"
79+
},
80+
{
81+
"label": "target",
82+
"text": "${target}",
83+
"type": "text"
84+
},
85+
{
86+
"label": "Citations",
87+
"text": "${Citations}",
88+
"type": "text"
89+
}
90+
]
91+
},
92+
{
93+
"match": [
94+
"published"
95+
],
96+
"selected": true,
97+
"display": [
98+
{
99+
"label": "source",
100+
"text": "${source}",
101+
"type": "text"
102+
},
103+
{
104+
"label": "relation",
105+
"text": "${relation}",
106+
"type": "text"
107+
},
108+
{
109+
"label": "target",
110+
"text": "${target}",
111+
"type": "text"
112+
}
113+
]
114+
}
115+
],
116+
"header": {
117+
"header": "Demo-KG",
118+
"title": "Demo-KG",
119+
"background": {
120+
"backgroundColor": "#000",
121+
"contrastText": "#FFF"
122+
},
123+
"icon": {
124+
"src": "https://minio.dev.maayanlab.cloud/enrichr-kg/enrichr-kg.png",
125+
"favicon": "https://minio.dev.maayanlab.cloud/enrichr-kg/enrichr-kg.png",
126+
"faviconTitle": "Demo-KG",
127+
"alt": "Demo-KG",
128+
"key": "Demo-KG_logo",
129+
"width": 100,
130+
"height": 60
131+
},
132+
"tabs": [
133+
{
134+
"endpoint": "/",
135+
"label": "Term & Gene Search",
136+
"type": "page",
137+
"component": "KnowledgeGraph",
138+
"props": {
139+
"init_function": "initialize_kg",
140+
"initial_query": {
141+
"start": "authors",
142+
"start_term": "A Ma'ayan",
143+
"start_field": "label"
144+
},
145+
"subheader": {
146+
"url_field": "filter",
147+
"query_field": "relation"
148+
}
149+
}
150+
}
151+
]
152+
},
153+
"footer": {
154+
"style": {
155+
"background": "#000",
156+
"color": "#FFF"
157+
},
158+
"layout": [
159+
[
160+
{
161+
"component": "logo",
162+
"props": {
163+
"src": "https://minio.dev.maayanlab.cloud/enrichr-kg/enrichr-kg.png",
164+
"alt": "enrichr-kg",
165+
"title": "Enrichr-KG",
166+
"color": "inherit",
167+
"size": "small"
168+
}
169+
},
170+
{
171+
"component": "github",
172+
"props": {
173+
"code": "https://github.com/MaayanLab/enrichr-kg",
174+
"issues": "https://github.com/MaayanLab/enrichr-kg-issues/issues/new"
175+
}
176+
}
177+
],
178+
[
179+
{
180+
"component": "icon",
181+
"props": {
182+
"type": "icon",
183+
"key": "lab_icon",
184+
"src": "https://minio.dev.maayanlab.cloud/enrichr-kg/maayanlab.png",
185+
"alt": "MaayanLab",
186+
"href": "https://labs.icahn.mssm.edu/maayanlab/",
187+
"height": 60,
188+
"width": 150
189+
}
190+
}
191+
],
192+
[
193+
{
194+
"component": "icon",
195+
"props": {
196+
"type": "icon",
197+
"key": "center_icon",
198+
"src": "https://minio.dev.maayanlab.cloud/enrichr-kg/bioinformatics.png",
199+
"alt": "COB",
200+
"href": "https://icahn.mssm.edu/research/bioinformatics",
201+
"height": 60,
202+
"width": 150
203+
}
204+
}
205+
]
206+
],
207+
"footer_text": "<span style='color:white'>Please acknowledge Enrichr-KG in your publications by citing the following reference:<br><a style='color: cyan' href='https://doi.org/10.1093/nar/gkad393'>Evangelista JE, Xie Z, Marino GB, Nguyen N, Clarke DJB, Ma'ayan A. Enrichr-KG: bridging enrichment analysis across multiple libraries. Nucleic Acids Res. 2023 May 11:gkad393. doi: 10.1093/nar/gkad393. PMID: 37166973.</a></span>"
208+
},
209+
"ui_theme": "enrichr_kg_theme"
210+
}

0 commit comments

Comments
 (0)