Caleydo / caleydo

Caleydo - Visualization for Molecular Biology
http://caleydo.org
BSD 3-Clause "New" or "Revised" License
58 stars 14 forks source link

Refactor IDMapping Manager #1455

Closed sgratzl closed 6 years ago

sgratzl commented 11 years ago

ideas:

alexsb commented 11 years ago

What would be the benefit of this? That you just have one static IDMappingManager?

that is is one benefit. In addition you need the graph management only once, which may save additional memory.

What do you mean with functional mapping?

Assume we allow complex object (e.g. unique objects, pathways) stored within the mapping graph.

Mapping a pathway object to its id can be done without a lookup table, as the id is stored within the pathway object. So you can define a function that maps pathway object to its id and saving the memory.

Similar thing vor pathway vertices and pathway vertex reps. Both already store the mapping in the object. So you don't need to store that mapping again.