Introduce explicit syntax to detach backed modalities
Open
@ilia-kats is already working on this.
Since Dec 14, 2020.
enhancement
- Dominant language
- Python
- Stars
- 134
- Forks
- 23
- Avg merge
- 27m
- Merged PRs (30d)
- 7
Description
If a modality has been backed inside .h5mu, on copy/write operations we might want to have a clearly defined behaviour. In particular the proposal is to differentiate between modalities linked to the MuData object and modalities detached from it:
mdata = mu.read('rna_atac.h5mu', backed=True)
rna = mdata['rna']
# ^__ linked
rna.copy('rna.h5ad')
# => Error referring the user to the MuData object
rna = mdata.mod['rna']
# ^__ detached
rna.copy('rna.h5ad')
# => Success
This proposal has been brought forward by @ilia-kats and has been originally discussed in the issue scverse/muon#17.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.