forked from truckyducky/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genanxietydisorder2.py
219 lines (197 loc) · 18.2 KB
/
genanxietydisorder2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
import streamlit as st
import streamlit.components.v1 as components
import pandas as pd
import networkx as nx
from pyvis.network import Network
from IPython.core.display import display, HTML
net = Network(notebook = True, cdn_resources="remote",height="900px", width="90%", select_menu = True, filter_menu=True,font_color="white", bgcolor = "black")
net.add_node('Node 19 - Generalized Anxiety Disorder - 2 Items [GAD-2]',
title = 'Generalized Anxiety Disorder - 2 Items [GAD-2]', color = '#e07c3e')
net.add_nodes(['COMEBACK', 'Development, Evaluation and Translation of Robotic Apparel for Alleviating Low Back Pain',
'HEALing LB3P: Profiling Biomechanical, Biological and Behavioral Phenotypes',
'Nonpharmacologic Pain Management for Lumbar Surgery',
'Novel Imaging of Endplate Biomarkers in Chronic Low Back Pain',
'Proof of Concept Study to Treat Negative Affect in Chronic Low Back Pain',
'Randomized-controlled trial of virtual reality for chronic lower back pain to improve patient-reported outcomes and physical activity',
'Technology Research Site for Advanced, Faster Quantitative Imaging for BACPAC',
'The Spine Phenome Project: Enabling Technology for Personalized Medicine',
'UM MRC BACPAC', "Wearable nanocomposite sensor system for diagnosing mechanical sources of low back pain and guiding rehabilitation",
"Biomarker Signature to Predict the Persistence of Post-Traumatic Headache",
"Discovery of the Biomarker Signature for Neuropathic Corneal Pain",
"Mentoring in Discovery and Validation of Clinical Chronic Pain Biomarkers",
"Multi-Omic Biomarkers for Neuropathic Pain Secondary to Chemotherapy",
"SPRINT: Signature for Pain Recovery IN Teens",
"Validation of a novel cortical biomarker signature for pain",
"A Study to Evaluate the Safety and Efficacy of CNTX-6970 in Subjects With Knee Osteoarthritis Pain",
"EPPIC-Net: Novaremed Painful Diabetic Peripheral Neuropathy ISA (EN21-01)",
"EPPIC-Net: Platform Protocol to Assess Treatments for Painful Diabetic Peripheral Neuropathy",
"Optimizing the use of ketamine to reduce chronic postsurgical pain",
"SurgeryPal",
"Culturally adapted mobile treatment of chronic pain in adolescent survivors of pediatric bone sarcoma",
"Integrating Nonpharmacologic Strategies for Pain with Inclusion, Respect, and Equity (INSPIRE): Tailored digital tools, telehealth coaching, and primary care coordination",
"Integrative Training Program for Pediatric Sickle Cell Pain",
"Latinx Children and Surgery",
"Partners for Pain & Wellbeing Equity: A Randomized Trial of Community Supported Complementary and Integrative Health Self Management for Back Pain",
"Intergrated Care for Chronic Pain and Opioid Use Disorder: The IMPOWR Research Center at Montefiore/Einstein (IMPOWR-ME)",
"Pain Care At Home to Amplify Function (Pain CHAMP)",
"Randomized Clinical Trial Intervention to Treat Chronic Pain Among Persons Maintained on Methadone for Opioid Use Disorder",
"Tailored Retention and Engagement for Equitable Treatment of OUD and Pain (TREETOP)",
"From Nerve to Brain: Toward a Mechanistic Understanding of Spinal Cord Stimulation in Human Subjects",
"Development and identification of magnetic resonance, electrophysiological, and fiber-optic imaging biomarkers of myofascial pain",
"Development and Validation of a Noninvasive Multimodal Ultrasound-Based Imaging Biomarker for Myofascial Pain",
"HEAL Initiative: Developing Quantitative Imaging and Other Relevant Biomarkers of Myofascial Tissues for Clinical Pain Management",
"Total-body PET for assessing myofascial pain",
"Harvard PRECISION Human Pain Center",
"Human Nociceptor and Spinal Cord Molecular Signature Center",
"INTERCEPT: Integrated Research Center for human Pain Tissues",
"Hybrid Effectiveness-Implementation Trial of Guided Relaxation and Acupuncture for Chronic Sickle Cell Disease Pain",
"Nonpharmacologic Pain Management for Lumbar Surgery",
"Non-pharmacological Options in postoperative Hospital-based And Rehabilitation pain Management (NOHARM) pragmatic clinical trial",
"Mapping the joint-nerve interactome of the knee",
"Neural architecture of the murine and human temporomandibular joint"],
label = ['COMEBACK', 'Development, Evaluation and Translation of Robotic Apparel for Alleviating Low Back Pain',
'HEALing LB3P: Profiling Biomechanical, Biological and Behavioral Phenotypes',
'Nonpharmacologic Pain Management for Lumbar Surgery',
'Novel Imaging of Endplate Biomarkers in Chronic Low Back Pain',
'Proof of Concept Study to Treat Negative Affect in Chronic Low Back Pain',
'Randomized-controlled trial of virtual reality for chronic lower back pain to improve patient-reported outcomes and physical activity',
'Technology Research Site for Advanced, Faster Quantitative Imaging for BACPAC',
'The Spine Phenome Project: Enabling Technology for Personalized Medicine',
'UM MRC BACPAC', "Wearable nanocomposite sensor system for diagnosing mechanical sources of low back pain and guiding rehabilitation",
"Biomarker Signature to Predict the Persistence of Post-Traumatic Headache",
"Discovery of the Biomarker Signature for Neuropathic Corneal Pain",
"Mentoring in Discovery and Validation of Clinical Chronic Pain Biomarkers",
"Multi-Omic Biomarkers for Neuropathic Pain Secondary to Chemotherapy",
"SPRINT: Signature for Pain Recovery IN Teens",
"Validation of a novel cortical biomarker signature for pain",
"A Study to Evaluate the Safety and Efficacy of CNTX-6970 in Subjects With Knee Osteoarthritis Pain",
"EPPIC-Net: Novaremed Painful Diabetic Peripheral Neuropathy ISA (EN21-01)",
"EPPIC-Net: Platform Protocol to Assess Treatments for Painful Diabetic Peripheral Neuropathy",
"Optimizing the use of ketamine to reduce chronic postsurgical pain",
"SurgeryPal",
"Culturally adapted mobile treatment of chronic pain in adolescent survivors of pediatric bone sarcoma",
"Integrating Nonpharmacologic Strategies for Pain with Inclusion, Respect, and Equity (INSPIRE): Tailored digital tools, telehealth coaching, and primary care coordination",
"Integrative Training Program for Pediatric Sickle Cell Pain",
"Latinx Children and Surgery",
"Partners for Pain & Wellbeing Equity: A Randomized Trial of Community Supported Complementary and Integrative Health Self Management for Back Pain",
"Intergrated Care for Chronic Pain and Opioid Use Disorder: The IMPOWR Research Center at Montefiore/Einstein (IMPOWR-ME)",
"Pain Care At Home to Amplify Function (Pain CHAMP)",
"Randomized Clinical Trial Intervention to Treat Chronic Pain Among Persons Maintained on Methadone for Opioid Use Disorder",
"Tailored Retention and Engagement for Equitable Treatment of OUD and Pain (TREETOP)",
"From Nerve to Brain: Toward a Mechanistic Understanding of Spinal Cord Stimulation in Human Subjects",
"Development and identification of magnetic resonance, electrophysiological, and fiber-optic imaging biomarkers of myofascial pain",
"Development and Validation of a Noninvasive Multimodal Ultrasound-Based Imaging Biomarker for Myofascial Pain",
"HEAL Initiative: Developing Quantitative Imaging and Other Relevant Biomarkers of Myofascial Tissues for Clinical Pain Management",
"Total-body PET for assessing myofascial pain",
"Harvard PRECISION Human Pain Center",
"Human Nociceptor and Spinal Cord Molecular Signature Center",
"INTERCEPT: Integrated Research Center for human Pain Tissues",
"Hybrid Effectiveness-Implementation Trial of Guided Relaxation and Acupuncture for Chronic Sickle Cell Disease Pain",
"Nonpharmacologic Pain Management for Lumbar Surgery",
"Non-pharmacological Options in postoperative Hospital-based And Rehabilitation pain Management (NOHARM) pragmatic clinical trial",
"Mapping the joint-nerve interactome of the knee",
"Neural architecture of the murine and human temporomandibular joint"],
title = ['COMEBACK', 'Development, Evaluation and Translation of Robotic Apparel for Alleviating Low Back Pain',
'HEALing LB3P: Profiling Biomechanical, Biological and Behavioral Phenotypes',
'Nonpharmacologic Pain Management for Lumbar Surgery',
'Novel Imaging of Endplate Biomarkers in Chronic Low Back Pain',
'Proof of Concept Study to Treat Negative Affect in Chronic Low Back Pain',
'Randomized-controlled trial of virtual reality for chronic lower back pain to improve patient-reported outcomes and physical activity',
'Technology Research Site for Advanced, Faster Quantitative Imaging for BACPAC',
'The Spine Phenome Project: Enabling Technology for Personalized Medicine',
'UM MRC BACPAC', "Wearable nanocomposite sensor system for diagnosing mechanical sources of low back pain and guiding rehabilitation",
"Biomarker Signature to Predict the Persistence of Post-Traumatic Headache",
"Discovery of the Biomarker Signature for Neuropathic Corneal Pain",
"Mentoring in Discovery and Validation of Clinical Chronic Pain Biomarkers",
"Multi-Omic Biomarkers for Neuropathic Pain Secondary to Chemotherapy",
"SPRINT: Signature for Pain Recovery IN Teens",
"Validation of a novel cortical biomarker signature for pain",
"A Study to Evaluate the Safety and Efficacy of CNTX-6970 in Subjects With Knee Osteoarthritis Pain",
"EPPIC-Net: Novaremed Painful Diabetic Peripheral Neuropathy ISA (EN21-01)",
"EPPIC-Net: Platform Protocol to Assess Treatments for Painful Diabetic Peripheral Neuropathy",
"Optimizing the use of ketamine to reduce chronic postsurgical pain",
"SurgeryPal",
"Culturally adapted mobile treatment of chronic pain in adolescent survivors of pediatric bone sarcoma",
"Integrating Nonpharmacologic Strategies for Pain with Inclusion, Respect, and Equity (INSPIRE): Tailored digital tools, telehealth coaching, and primary care coordination",
"Integrative Training Program for Pediatric Sickle Cell Pain",
"Latinx Children and Surgery",
"Partners for Pain & Wellbeing Equity: A Randomized Trial of Community Supported Complementary and Integrative Health Self Management for Back Pain",
"Intergrated Care for Chronic Pain and Opioid Use Disorder: The IMPOWR Research Center at Montefiore/Einstein (IMPOWR-ME)",
"Pain Care At Home to Amplify Function (Pain CHAMP)",
"Randomized Clinical Trial Intervention to Treat Chronic Pain Among Persons Maintained on Methadone for Opioid Use Disorder",
"Tailored Retention and Engagement for Equitable Treatment of OUD and Pain (TREETOP)",
"From Nerve to Brain: Toward a Mechanistic Understanding of Spinal Cord Stimulation in Human Subjects",
"Development and identification of magnetic resonance, electrophysiological, and fiber-optic imaging biomarkers of myofascial pain",
"Development and Validation of a Noninvasive Multimodal Ultrasound-Based Imaging Biomarker for Myofascial Pain",
"HEAL Initiative: Developing Quantitative Imaging and Other Relevant Biomarkers of Myofascial Tissues for Clinical Pain Management",
"Total-body PET for assessing myofascial pain",
"Harvard PRECISION Human Pain Center",
"Human Nociceptor and Spinal Cord Molecular Signature Center",
"INTERCEPT: Integrated Research Center for human Pain Tissues",
"Hybrid Effectiveness-Implementation Trial of Guided Relaxation and Acupuncture for Chronic Sickle Cell Disease Pain",
"Nonpharmacologic Pain Management for Lumbar Surgery",
"Non-pharmacological Options in postoperative Hospital-based And Rehabilitation pain Management (NOHARM) pragmatic clinical trial",
"Mapping the joint-nerve interactome of the knee",
"Neural architecture of the murine and human temporomandibular joint"],
shape = ['text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text',
'text','text','text','text','text','text','text','text','text','text','text','text','text','text','text']
)
## add edge connection for 'Node 19 - Generalized Anxiety Disorder - 2 Items [GAD-2]'
edge_list = ['COMEBACK', 'Development, Evaluation and Translation of Robotic Apparel for Alleviating Low Back Pain',
'HEALing LB3P: Profiling Biomechanical, Biological and Behavioral Phenotypes',
'Nonpharmacologic Pain Management for Lumbar Surgery',
'Novel Imaging of Endplate Biomarkers in Chronic Low Back Pain',
'Proof of Concept Study to Treat Negative Affect in Chronic Low Back Pain',
'Randomized-controlled trial of virtual reality for chronic lower back pain to improve patient-reported outcomes and physical activity',
'Technology Research Site for Advanced, Faster Quantitative Imaging for BACPAC',
'The Spine Phenome Project: Enabling Technology for Personalized Medicine',
'UM MRC BACPAC', "Wearable nanocomposite sensor system for diagnosing mechanical sources of low back pain and guiding rehabilitation",
"Biomarker Signature to Predict the Persistence of Post-Traumatic Headache",
"Discovery of the Biomarker Signature for Neuropathic Corneal Pain",
"Mentoring in Discovery and Validation of Clinical Chronic Pain Biomarkers",
"Multi-Omic Biomarkers for Neuropathic Pain Secondary to Chemotherapy",
"SPRINT: Signature for Pain Recovery IN Teens",
"Validation of a novel cortical biomarker signature for pain",
"A Study to Evaluate the Safety and Efficacy of CNTX-6970 in Subjects With Knee Osteoarthritis Pain",
"EPPIC-Net: Novaremed Painful Diabetic Peripheral Neuropathy ISA (EN21-01)",
"EPPIC-Net: Platform Protocol to Assess Treatments for Painful Diabetic Peripheral Neuropathy",
"Optimizing the use of ketamine to reduce chronic postsurgical pain",
"SurgeryPal",
"Culturally adapted mobile treatment of chronic pain in adolescent survivors of pediatric bone sarcoma",
"Integrating Nonpharmacologic Strategies for Pain with Inclusion, Respect, and Equity (INSPIRE): Tailored digital tools, telehealth coaching, and primary care coordination",
"Integrative Training Program for Pediatric Sickle Cell Pain",
"Latinx Children and Surgery",
"Partners for Pain & Wellbeing Equity: A Randomized Trial of Community Supported Complementary and Integrative Health Self Management for Back Pain",
"Intergrated Care for Chronic Pain and Opioid Use Disorder: The IMPOWR Research Center at Montefiore/Einstein (IMPOWR-ME)",
"Pain Care At Home to Amplify Function (Pain CHAMP)",
"Randomized Clinical Trial Intervention to Treat Chronic Pain Among Persons Maintained on Methadone for Opioid Use Disorder",
"Tailored Retention and Engagement for Equitable Treatment of OUD and Pain (TREETOP)",
"From Nerve to Brain: Toward a Mechanistic Understanding of Spinal Cord Stimulation in Human Subjects",
"Development and identification of magnetic resonance, electrophysiological, and fiber-optic imaging biomarkers of myofascial pain",
"Development and Validation of a Noninvasive Multimodal Ultrasound-Based Imaging Biomarker for Myofascial Pain",
"HEAL Initiative: Developing Quantitative Imaging and Other Relevant Biomarkers of Myofascial Tissues for Clinical Pain Management",
"Total-body PET for assessing myofascial pain",
"Harvard PRECISION Human Pain Center",
"Human Nociceptor and Spinal Cord Molecular Signature Center",
"INTERCEPT: Integrated Research Center for human Pain Tissues",
"Hybrid Effectiveness-Implementation Trial of Guided Relaxation and Acupuncture for Chronic Sickle Cell Disease Pain",
"Nonpharmacologic Pain Management for Lumbar Surgery",
"Non-pharmacological Options in postoperative Hospital-based And Rehabilitation pain Management (NOHARM) pragmatic clinical trial",
"Mapping the joint-nerve interactome of the knee",
"Neural architecture of the murine and human temporomandibular joint"]
for item in edge_list:
net.add_edge('Node 19 - Generalized Anxiety Disorder - 2 Items [GAD-2]', item)
net.repulsion(spring_strength = 0)
net.show("edges.html")
# Save and read graph as HTML file (on Streamlit Sharing)
try:
path = '/tmp'
net.save_graph(f'{path}/pyvis_graph.html')
HtmlFile = open(f'{path}/pyvis_graph.html', 'r', encoding='utf-8')
# Save and read graph as HTML file (locally)
except:
path = '/html_files'
net.save_graph(f'{path}/pyvis_graph.html')
HtmlFile = open(f'{path}/pyvis_graph.html', 'r', encoding='utf-8')
# Load HTML file in HTML component for display on Streamlit page
components.html(HtmlFile.read(), height=1000, width = 1000)