This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How can I pass multiple GO-BP terms in neo4j to make a network with a single subtype?

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

enter image description here

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.

r neo4j pathway

0 answers

No answers yet.

Log in to answer this question.