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
Either there is a serious bug in AnnData, or I'm not understanding the semantics of copy. It seems that a copy operation of a backed AnnData also overwrites the backing file of the original object:
In [3]: test = ad.read_h5ad("/home/kats/rna.h5ad", backed=True)
In [4]: test2 = test.copy("/home/kats/rna2.h5ad")
In [5]: test2.filename
Out[5]: PosixPath('/home/kats/rna2.h5ad')
In [6]: test.filename
Out[6]: PosixPath('/home/kats/rna2.h5ad')
And this issue is ultimately a consequence of that.
I am struggling to provide any reasonable explanation to that behaviour, thanks for noticing! Let's see if that might be resolved upstream indeed then.
Modalities backed inside a .h5mu file can't be copied to a new location as expected:
The text was updated successfully, but these errors were encountered: