You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
This would enable something like this:
mdata.obs.merge(metadata)
mdata.propagate_obs()
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: