rtviii / riboxyz

htpps://ribosome.xyz
0 stars 0 forks source link

Refactor cypher ingestion functions. #48

Closed rtviii closed 6 months ago

rtviii commented 6 months ago

We can get a lot of convenience at the price of extra tags on nodes. I.e. right now you have dedicated node labels PolymerClass RNA Protein etc, so now that you have "other_polymer" you have to create a whole new thing with node creating and linking.

Instead create a Polymer node for each polymer uniformly and then tag them with Protein or RNA or what have you retroactively:

https://neo4j.com/docs/cypher-manual/current/clauses/set/#set-set-multiple-labels-on-a-node

rtviii commented 6 months ago

Done.