You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting variable results with FindMarkers and looking for input on how to approach it, or if it is a bug to share it.
A SeuratObject was constructed with a variety of samples normalized with SCT v2. Now I am looking at Differential Gene expression across celltypes or conditions, with multiple samples in the condition. When I run comparison with FindMarkers and MAST using RNA assay (slots as counts or data), MAST using SCT assay (slots as data), or Wilcoxan test with RNA or SCT (slots as counts or data), a cell-type specific gene for Celltype1 vs Celltype2 has a log2_FC of ~5. When I run FindMarkers and MAST using SCT assay (slots as counts), I get a log2_FC of ~300. When I run my data in MAST package (e.g., convert to SCE format), the log2_FC is ~5. Using AverageExpression function, the expression of this gene in SCT assay is 60.519564 for Celltype1 and 1.126311 for Celltype2 in counts slot and 60.519564 and 1.126311 in data slots (and grossly similar in RNA assay). So it would appear that FindMarker with test.use = MAST has an error when assay = SCT and slot = Counts. Or is there another interpretation here?
I am not part of Seutat team but I have also noticed this kind of error in average log2FC computation made by FindMarkers function. It appears that the function to calculate average expression is not correct when using an SCT assay and one the following tests : negbinom, poisson, MAST. I described the error in more details in the issue #7095 and pulled a request to fix this error (#7115).
Hi @lepriolc, @maxc2020
I have just pushed 992c1a9 to develop branch which should fix this and related issues. Can you pull from the develop branch and re-open this issue if you are still facing issues?
I'm getting variable results with FindMarkers and looking for input on how to approach it, or if it is a bug to share it.
A SeuratObject was constructed with a variety of samples normalized with SCT v2. Now I am looking at Differential Gene expression across celltypes or conditions, with multiple samples in the condition. When I run comparison with FindMarkers and MAST using RNA assay (slots as counts or data), MAST using SCT assay (slots as data), or Wilcoxan test with RNA or SCT (slots as counts or data), a cell-type specific gene for Celltype1 vs Celltype2 has a log2_FC of ~5. When I run FindMarkers and MAST using SCT assay (slots as counts), I get a log2_FC of ~300. When I run my data in MAST package (e.g., convert to SCE format), the log2_FC is ~5. Using AverageExpression function, the expression of this gene in SCT assay is 60.519564 for Celltype1 and 1.126311 for Celltype2 in counts slot and 60.519564 and 1.126311 in data slots (and grossly similar in RNA assay). So it would appear that FindMarker with test.use = MAST has an error when assay = SCT and slot = Counts. Or is there another interpretation here?
Examples of the code lines to get DE:
SessionInfo
The text was updated successfully, but these errors were encountered: