Retrieve gene list of ambient profile #12
-
Is there a way to retrieve a list of genes that contribute most to the ambient RNA profile? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @carolienv, thanks for using our tool. Yes, when running the
This is an interesting question, so I am going to move it to a Discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi @joshua-d-campbell, thanks for all this work on the package! I had a similar question - I've explored the eta distributions in my decontX output, and I'm wondering if it's also possible to extract, for each cluster |
Beta Was this translation helpful? Give feedback.
Hi @carolienv, thanks for using our tool. Yes, when running the
decontX
function for scRNA-seq, you can get the parameters back out of the metadata (see code below). "Eta" is a "gene by cell population matrix". The higher the probability the higher the gene contributes to the ambient profile. Note that many of the highly expressed housekeeping genes are highly ranked in the ambient profiles as well. To find the genes that are enriched in the ambient profile, you may want to compare it to the cell profile. You can get the cell estimates from "Phi" which is also a "gene by cell population" matrix. Here is some code to do this: