Entering edit mode
dangm
▴
10
@dangm-23230
Last seen 4.5 years ago
Figure 3a of Aran et. al Nature Immunology paper describing SingleR used only a subset of Immgen data that is specifically of macrophages and monocytes. How can I analyze my data using just that subset?
Thank you. That worked well. Would you kindly also comment on whether or not the following is possible in SingleR? I used plotHeatmap(UnMgMo.sce, ordercolumnsby="labels", features=unique(unlist(all.markers$Microglia))) to display genes that are microglia specific and I get an extremely large list that is exceedingly difficult to read. Is there a way to limit this gene list for each cell type, say top 50 that are most different among my samples.
If by "most different", you mean "most variable".
On the other hand, if you're talking about DE genes between labels:
Note the unfortunate need for 2
unlist
s, this is a known bug in S4Vectors.Thank you again. For the first suggestion, by "most variable", do YOU mean, most variable between standard cell types and the second are genes that are most different between labels? If so, then I was looking for the first--basically genes that are most specific to each of the standard cell types.
If you want to operate on the reference cell types, just swap
UnMgMo.sce
andUnMgMo.sce$label
forse.sub
andse.sub$label.main
from my original post.Thank you. That didn't work for me. Does it matter that se.sub is a Large SummarizedExperiment file and not sce?
It would be nice if you were a bit more specific about why it didn't work.
Fortunately, I can guess why. The current version of scran expects
SingleCellExperiment
objects butse.sub
is aSummarizedExperiment
object. No problem, just upgrade the object before using the functions.The next version of scran will natively support both objects, so you won't need to do that.
Thank you for the reply. I really appreciate your help.