Git Product home page Git Product logo

Comments (7)

MarcElosua avatar MarcElosua commented on June 30, 2024 1

Hi @WesDe ,
I added the output PDF file as well as the Rmarkdown file (as .txt as github doesn't allow me to upload the .Rmd).
Briefly I believe the issue is due to Regulatory T cells in your 1st run and the Unkown cell in the 2nd run. These cells don't have a clear topic obtained after running NMF. This is due to the cells grouped into that cell type have very heterogeneous profiles. Therefore, when trying to find a consensus topic SPOTlight is unable to find one and ends up obtaining a very low contribution of each topic for that cell type. Then when trying to fit the single-cell profiles to the visium spots they capture all the signal.

Personally I would recommend the following strategies to try to solve this issue:

  • Remove the clusters of cells that are returning these mixed topic profiles.
  • Try to change the gene set used so that you remove noisy genes (ribosomal, mitochondrial, non cell-type specific...) and make sure the canonical ones defining each cell type are present. Sometimes a smaller more specific gene set using only the marker genes and not the highly-variable genes. As far as I could tell the Regulatory T cell cluster in the 1st run doesn't express T cell genes nor FOXP3 or HAVCR2.
  • In your second run I see that some of the cell types defined have a number of cells < 5. I would recommend having clusters with > ~20 cells since that allows the model to correctly capture the biological signal, if there are clusters with low number of cells the biology learned will be specific to those ~5 cells. Due to the sparsity of scRNAseq data the model cannot fully learn the shared biology of that cell type and will instead learn a signature specific for those few cell types.

Hope this helps!
Please let me know if you have any further questions, I am more than happy to help!

WesDe_SPOTlight.pdf
WesDe_SPOTlight.txt

from spotlight.

MarcElosua avatar MarcElosua commented on June 30, 2024

Hi @WesDe ,
Thanks so much for giving SPOTlight a shot!
This is indeed very odd, as a quick fix I would suggest removing the unknown cell type from the training set since it seems that it is capturing all the signal...
Could you share with me the trained NMF model so I can take a look at what might be happening?
NMFmod <- decon_mtrx_ls[[1]][[1]]

thanks for reaching out and sorry for the inconvenience,
Marc

from spotlight.

WesDe avatar WesDe commented on June 30, 2024

Hi @MarcElosua,

Thanks for the quick reply. I saw that i didn't remove cells associated with high mitochondrial genes expressed from my scRNA sequencing dataset. This caused to have a cluster called unknown, i don't think it can be the reason behind this kind of issue. I annotated again my sc RNA seq dataset with removing high mitochondrial genes expressed cells but it did not change the result.

I can share the rds file if it can help you (sorry had to add the .gz extension for github)
From the first run : spotlight_ls.rds.gz
From the second run : spotlight_ls_2.rds.gz

Wes

from spotlight.

MarcElosua avatar MarcElosua commented on June 30, 2024

Hi @WesDe
So sorry for the late reply, I put together a brief R markdown document where I took a more in-depth look at what may be happening in your situation. Since it is your data do you mind me posting it here? If not, could you please share with me your email address so I can send it directly to you?

Thanks again for giving SPOTlight a shot and for your patience!
Marc

from spotlight.

WesDe avatar WesDe commented on June 30, 2024

Hi @MarcElosua,
The data come from a 10x genomics public dataset so I don't mind if you post it here. It may even help people if they encounter the same issue.

Best,
Wes

from spotlight.

carlosccfraga avatar carlosccfraga commented on June 30, 2024

Hey, I am trying to perform the SPOTlight R package using seurat data. You changed all the names you put on your early tutorial and did not updated it. It is a long time to understand all of it

from spotlight.

MarcElosua avatar MarcElosua commented on June 30, 2024

Hi @carlosccfraga

Please refer to the bioconductor tutorial here.

from spotlight.

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.