Entering edit mode
11 months ago
prithvi.mastermind
▴
50
I have around 250 GO-BP terms and want to create a network with IM as a subtype node in noe4j. I used the following command to manually associate suppose a single GO:BP term with IM.
MATCH (n:Subtype {name: 'IM'}), (p:BiologicalProcess {name: 'viral genome replication'})
MERGE (n)-[:AFFECTS]->(p)
MATCH (n:Subtype {name: 'IM'}), (p:BiologicalProcess {name: 'cytokinesis'})
MERGE (n)-[:AFFECTS]->(p)
I'm getting a network like this when i did manually for around 6-8 GO-BP terms
How can I do using FOREACH statement in neo4j for around 250 GO-BP terms at once? Do I have to pass all the terms an array list for first reading? All the terms are currently saved in a csv list.