Closed Sophiesze closed 4 years ago
How did you set the cell identities in the object before doing the differential expression test?
I defined CD4+ cells only by promoters and motifs from previous studies done by CHIP-seq or bulk ATAC seq, and so do other cell types. I did not integrate scATAC data with sc-RNA data.
I meant more how are you setting the identities in the object? My guess is that you're not comparing the right groups of cells in the violin plot / heatmap and in the FindMarkers function. In the heatmap you can see within the red/blue groups (name is cropped out) there are different populations of cells that are high/low for FOS::JUND. Can you post the full you that you ran?
It's a bit hard to follow all the code because it's in different files and there are a lot of things going on, in general it's helpful to provide a minimal reproducible example.
My understanding is that you identified CD4+ T-cells, subset the object to only contain those cells, and set the identities in the subset object to either "HC" or "PATIENT" depending on some additional metadata. You then found differentially active motifs by running FindMarkers on the chromVAR assay.
I would try to verify again that you have the identities set correctly when running VlnPlot and DoHeatmap, as it looks like there are separate populations of cells that are high and low for this motif, which is more consistent with the fold change reported in the DE test. Also, for the heatmap you probably want to use the data
rather than scale.data
slot when plotting the chromVAR assay.
Thanks for your advice!
Hi Tim,
I'm trying to identify the motif difference between patients and healthy controls in CD4+ cells by using RunChromvar. My code is attached below. It is strange that although the avg_logFC seems high, the Heatmap and VlnPlot of the motif doesn't look like have any differences. I hope you can help me with the problem I met. Thanks!
Best, Sophie