Comments (3)
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.
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.
@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)
- Problem in buildNhoodGraph on a large dataset HOT 3
- testNhoods() returns :Error in glmFit.default(y, design = design, dispersion = dispersion, offset = offset, : NA dispersions not allowed HOT 5
- Please close this question
- Can I run calcNhoodDistance before countCells HOT 2
- when should buildGraph be used with transposed=TRUE? HOT 4
- findNhoodGroupMarkers: overlapping nhoods in fake.meta HOT 2
- Mixed effects models with contrasts HOT 2
- Choice of fdr.weighting in testNhoods HOT 2
- scVI corrected dimensions with MiloR HOT 1
- plotNhoodSizeHist not lining up with nhoodCounts HOT 2
- Use milo with continuous variable HOT 1
- First level loss when running testNhoods with multiple contrasts and multiple batch HOT 3
- Update contrasts documentation
- How to implement more complex contrast formulas HOT 3
- How to extract cell barcode identified by MiloR? HOT 2
- error in makeNhoods HOT 3
- Color scale missing (res_column) in plotNhoodGraphDA() HOT 2
- plotNhoodGraphDA does not display logFC data HOT 2
- Milo not identifying significant results HOT 8
- Reorder Ident in plotDAbeeswarm HOT 4
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 milor.