Hi Yash, Here are my thoughts on this:
There are two ways: 1. With Experiment node as the top node, you can add all the protein-protein interactions observed under that experiment. <https://lh3.googleusercontent.com/-IbE6M1thvbI/WT15ldC2ftI/AAAAAAAACOg/feTqB2E1mOoYRpNAzKJdgQ-X97CBbUnJgCLcB/s1600/Experiment_root.PNG> 2. With Protein node as the top node, you can add the protein that interacts and the experiment that fetched that result. <https://lh3.googleusercontent.com/-vDUSVjtPUKE/WT15xXMNQUI/AAAAAAAACOk/nqVJ56Jww6oYl-5OXMaGFPqA9rjqnagdQCLcB/s1600/Protein_root.PNG> Hope this will help you. -Kamal On Friday, June 9, 2017 at 1:02:06 AM UTC-7, Yash Sharma wrote: > > I have to store biological interactions in a Neo4j database. For example, > consider a scenario where I have two types of nodes, Protein & Experiment > and a relationship INTERACTS_WITH. The relationship exists as > (Protein)-[INTERACTS_WITH]-(Protein). Now, the INTERACTS_WITH also relates > to Experiment because this biological interaction was observed in that > experiment. > > > I need to relate the INTERACTS_WITH relationship to the Experiments. > > > One way to achieve this can be to store the ID of all such Experiments in > an array type property of the INTERACTS_WITH relationship. But that will be > just like storing the Primary Key of an entity as Foreign Key of another > entity in the relational database, which I want to avoid. > > > Another way can be to create an Interaction node for each pair of > interacting genes and then relate it to the two Proteins and the > Experiments. But an interaction is possible between two Protein nodes only, > so I will have to programmatically put a constraint on the number of > Protein nodes that relate to an Interaction node. This approach is also not > good because INTERACTS_WITH is actually a relationship and perhaps it will > be not a good idea to model it as a node. > > > Is there a better, graphical way to do this? If not, which of the above > two approaches will be better? > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
