Gary kindly find the cyoher below
q="""
LOAD CSV WITH HEADERS FROM 'file:///UTI.csv' AS line
MERGE (a:age {name:'Age',AgeCategory : line.age_category})
WITH line, a
MERGE (d:demography {name :'Demography'})
MERGE (a)-[:connects]->(d)
MERGE (m:maritalStatus {name:'MaritalStatus',maritalStatus : line.maritalstatus})
WITH line, m
MERGE (d:demography {name :'Demography'})
MERGE (m)-[:connects]->(d)
MERGE (g:gender {name:'Gender',age : line.gender})
WITH line, g
MERGE (d:demography {name :'Demography'})
MERGE (g)-[:connects]->(d)
MERGE (u:UTI_inf {name:'UTI_inf',Urinary_tract_infections : line.urinary_tract_infections})
WITH line, u
MERGE (h:history {name :'History'})
MERGE (u)-[:connects]->(h)
MERGE (t:temp {name:'Temperature',temp : line.temperature})
WITH line, t
MERGE (v:vitals {name :'Vitals'})
MERGE (t)-[:connects]->(v)
MERGE (cc:chief_complaint {name:'Chief complaint',chief_complaint : line.chief_complaints})
WITH line, cc
MERGE (c:Complaints {name :'Complaints'})
MERGE (cc)-[:connects]->(c)
MERGE (d:demography {name :'Demography'})
MERGE (v:vitals {name :'Vitals'})
MERGE (h:history {name :'History'})
MERGE (UTI:UTI {name:'UTI',UTI_diag : "Yes"})
MERGE (d)-[w1:connects{weight:$w1}]->(UTI)
MERGE (v)-[w2:connects{weight:$w2}]->(UTI)
MERGE (h)-[w3:connects{weight:$w3}]->(UTI)
MERGE (c)-[w4:connects{weight:$w4}]->(UTI)
MERGE (pe:PhysicalExam {name :'PhysicalExam'})
MERGE (back_pain:back_pain {name:'Backpain'})-[p1:Present{Presence :'1'}]->(pe)
MERGE (fatigue:fatigue {name:'Fatigue'})-[p2:Present{Presence : line.fatigue}]->(pe)
MERGE (fever:fever {name:'Fever'})-[p3:Present{Presence : line.fever}]->(pe)
MERGE (vag_bleeding:vag_bleeding {name:'Vaginalbleeding'})-[p4:Present{Presence : line.vaginal_bleeding}]->(pe)
MERGE (vag_discharge:vag_discharge {name:'Vaginaldischarge'})-[p5:Present{Presence : line.vaginal_discharge}]->(pe)
MERGE (abd_pain:abd_pain {name:'ABDpain'})-[p6:Present{Presence : line.abdomen_pain}]->(pe)
MERGE (pelvic_pain:pelvic_pain {name:'PelvicPain'})-[p7:Present{Presence : line.pelvic_pain}]->(pe)
MERGE (flank_pain:flank_pain {name:'FlankPain'})-[p8:Present{Presence : line.flank_pain}]->(pe)
MERGE (dysuria:dysuria {name:'Dsuria'})-[p9:Present{Presence : line.dysuria}]->(pe)
MERGE (hematuria:hematuria {name:'Hematuria'})-[p10:Present{Presence : line.hematuria}]->(pe)
MERGE (ua:UrinaryAnalysis {name :'UrinaryAnalysis'})
MERGE (ua_bacteria:ua_bacteria {name:'Bacteria'})-[l1:level{level : line.ua_bacteria}]->(ua)
MERGE (ua_leuk:ua_leuk {name:'Leukocyte'})-[l2:level{level : line.ua_Leukocytes}]->(ua)
MERGE (ua_nitrite:ua_nitrite {name:'Nitrite'})-[l3:level{level : line.ua_nitrite}]->(ua)
MERGE (ua_ph:ua_ph {name:'PH'})-[l4:level{level : line.ua_ph}]->(ua)
MERGE (ua_protein:ua_protein {name:'Protein'})-[l5:level{level : line.ua_protein}]->(ua)
MERGE (ua_rbc:ua_rbc {name:'RBC'})-[l6:level{level : line.ua_rbc}]->(ua)
MERGE (ua_wbc:ua_wbc {name:'WBC'})-[l7:level{level : line.ua_wbc}]->(ua)
MERGE (pe)-[w5:Connects{weight:$w5}]->(UTI)
MERGE (ua)-[w6:Connects{weight:$w6}]->(UTI)
"""
yes the weights have to be calculated and has to be passed as parameter, for now Im just using random weights, something like this
session.run(q,w1=5.6,w2=8.6,w3=8.6,w4=9,w5=5.0,w6=6.0)
The aim of the graph is to help find the probability of the disease based on the weights from each node.
The below shows graph only for UTI Dataset.
I need help in knowing how can this be achieved