Comments (3)
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.
from muon.
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.
from muon.
This should work with current AnnData master, closing. Please reopen if there are any more issues with this.
from muon.
Related Issues (20)
- "OptionError: 'Pattern matched multiple keys'" traceback in tutorial
- Is being developed? HOT 2
- MOFA error when data has been created using `axis=-1`
- Batch correction for joint modality umap
- Enable `gene_symbols` argument in mu.pl.embedding HOT 1
- Sum duplicate rows in muon.atac.tl.count_fragments_features
- raw is also normalized with clr HOT 4
- How can I concatenate multiple `muon` data samples? HOT 2
- ValueError: could not broadcast input array from shape HOT 2
- float overflow in dsb normalization HOT 1
- dsb normalization results do not replicate results with the original DSBNormalizeProtein function in R
- mu.pl.scatter() fails when providing color
- Add fragment file path to a merged mudata object HOT 1
- ImportError: cannot import name '_compute_connectivities_umap' from 'scanpy.neighbors' HOT 9
- Improve module import time HOT 1
- Test against pre-releases
- Invalid function call in independent component analysis (tl.ica)
- Error with muon import HOT 3
- WNN integration raise error while adding connectivities into mdata.obsp
- Discrete values after using the CLR normalization pt.pp.clr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from muon.