question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

loosing .uns metadata when concatenating

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
le-andercommented, Apr 1, 2021

like have another input argument for .streamline(format==“sfaira”, allow_uns=False)?

0reactions
davidsebfischercommented, Apr 1, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found