There is currently no way of propagating columns in the global .obs slot of a mudata object to all modalities. This could be a useful feature, e.g. when you have metadata that you want to be present in all modalites (for example when unimodal methods depend on that metadata).
I think the easiest solution would be to have a mdata.propagate_obs() method that looks through the columns of the mudata.obs table and writes columns not currently present in the individual modalites to their respective .obs in 2 ways:
columns without without a modname: prefix are written to all modalities
columns with modname:xxx are written to the .obs of modname
There is currently no way of propagating columns in the global .obs slot of a mudata object to all modalities. This could be a useful feature, e.g. when you have metadata that you want to be present in all modalites (for example when unimodal methods depend on that metadata).
I think the easiest solution would be to have a mdata.propagate_obs() method that looks through the columns of the mudata.obs table and writes columns not currently present in the individual modalites to their respective .obs in 2 ways:
modname:
prefix are written to all modalitiesmodname:xxx
are written to the .obs ofmodname
This would enable something like this: