sdsc-ordes / modos-api

Python API to manage multi-omics digital objects
https://sdsc-ordes.github.io/modos-api
Apache License 2.0
0 stars 0 forks source link

Add array api function to simplify adding arrays to modo #38

Open almutlue opened 6 months ago

almutlue commented 6 months ago

The current way of adding an array to a modo includes 2 steps:

  1. add the element specifying the array metadata to modo
  2. add the array to modos zarr group

For the user these steps can be confusing and we allow inconsistencies, e.g. specifying any array path in the element, unrelated where the array is added in the hierarchy. Also the zarr framework can feel cumbersome, if not used to.

Open question:

  1. What about modo.add_element()? Do we allow adding array metadata (step 1above)?
  2. Should modo_add_array() also take care of rowname/colname handling?
almutlue commented 6 months ago

Proposal: