Giter Site home page Giter Site logo

Comments (3)

emdann avatar emdann commented on August 10, 2024

Hi @gianfilippo, from your description my impression is that the difference between results with 20 or 50 PCs has more to do with the features of your dataset. My first guess would be that you have a batch/sample effect that is captured by the first PCs of your dataset. If that's the case it could be that taking 20 PCs many neighbourhoods contain cells from only a few samples, and this leads to no significant DA. You can check this by plotting the number of cells vs number of samples in each nhood.

My recommendation would be to perform some QC analysis on your reduced dimensions space before moving to differential abundance analysis, to assess whether the PCA is capturing batch effects (e.g. diagnostics from the OSCA book). Is this the same space/KNN graph you are using for other analyses such as UMAP embedding and cell type clustering? You might have to use reduced dimensions from a batch correction method instead of PCA as input for Milo analysis.

from milor.

gianfilippo avatar gianfilippo commented on August 10, 2024

Hi,

I have my QC already done, and clustering, markers, etc look good.
Anyway, I will take a look at the number of cells vs number of samples.

Also, I used the PCA computed after integrating the samples (i.e. batch correction). This is what is used for the integrated_umap. Should I use the integrated_umap, instead ?

The mean neighborhood size changes very slowly with k. Is this a consequence of using a precomputed graph or is this expected ? I am asking since k is described to affect DA power.

Thanks

from milor.

MikeDMorgan avatar MikeDMorgan commented on August 10, 2024

@gianfilippo - the UMAP is for purely visualisation purposes, the graph should always be built from the (integrated) reduced dimensions. If you are using a pre-computed graph, e.g. a WNN or SNN graph, then use the same k used for that initial graph for consistency.

from milor.

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.