How can I pass multiple GO-BP terms in neo4j to make a network with a single subtype?
0
0
Entering edit mode
11 months ago

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 • 300 views
ADD COMMENT

Login before adding your answer.

Traffic: 1720 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6