loosing .uns metadata when concatenating
See original GitHub issueI was facing some problems with metadata in .uns, when I realised that we currently don’t seem to have any mechanism that automatically transfers uns labels into obs before concatenating adatas when calling DatasetGroup.adata
I’m wondering whether we should just by default move all uns to obs before concatenating adatas. Couldn’t we just add a call to self._set_metadata_in_adata(allow_uns=False)
before this line:
https://github.com/theislab/sfaira/blob/58aadc6f9678f83f37587e1eceb6aaea99faa717/sfaira/data/base/dataset_group.py#L318
what do you think @davidsebfischer ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Concatenation — anndata 0.9.0.dev37+g312e6ff documentation
Merging uns in this way can be useful when there is some shared data between the objects being concatenated. For example, if each...
Read more >ffmpeg concatenate results in bad/garbled output for second ...
I am trying to concatenate two videos together using the ffmpeg concat demuxer: a 5-second intro splash and a 60-second main/body video.
Read more >Wrong framerate during FFMPEG concatenation
I'm concatenating 2 video files 00000 and 00001: ffmpeg -y -f ... 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): ...
Read more >How to concat 2 mp4 videos by ffmpeg without having a ...
Briefing. Using ffmpeg, I can concatenate the 2 videos by generating a *.ts file for each video file. It is the file extension...
Read more >Concatenate enhancements · Issue #295 · scverse/anndata
I know that the AnnData.concatenate() docstring says "The uns, ... for the next version of visium, by not assuming a shared set of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
like have another input argument for .streamline(format==“sfaira”, allow_uns=False)?
Cellxgene streamlining needs allow_uns=False because the cellxgene object format is narrowly defined on this. I would not optimise this interface too much though because they might be merged in the future: https://github.com/theislab/sfaira/issues/200.