Giter Club home page Giter Club logo

Comments (4)

falexwolf avatar falexwolf commented on August 16, 2024

what do you mean specifically and what do you suggest? can you give an example?

from anndata.

marouf-git avatar marouf-git commented on August 16, 2024

So, if I make a new anndata object using:
adata = sc.AnnData(X=adata_training.X, obs = adata_training.obs, uns = adata_training.uns)
The uns field is supposed to be one unstructured annotation for all observations. However, we can still use adata[0].uns , adata[1].uns ....etc. This would be fine if what we added to the uns field is a small dictionary, because replicating it to all observations will not significantly increase the size or the query time of the andata object.
However, once we have more meta data to add in the uns field, the size of the file as well as query/read/write time increase massively.

It could be, that I missed the point of using uns field but then the issue is still valid but related to the documentation of the Anndata object more than to the object itself.

from anndata.

falexwolf avatar falexwolf commented on August 16, 2024

Usually you wouldn't split up your AnnData's into many tiny objects. Also, usually, .uns doesn't contain a lot of data, just some very light-weight annotations.

from anndata.

marouf-git avatar marouf-git commented on August 16, 2024

Hi @falexwolf .

Usually you wouldn't split up your AnnData's into many tiny objects.

Well, sometimes you just need to parse and process the observations one by one.

Also, usually, .uns doesn't contain a lot of data, just some very light-weight annotations.

That was not my use case.

Anyway thanks for the great package and for your clarification :)

from anndata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.