-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The results of FindMarkers and FoldChange are inconsistent #6701
Comments
I have the same issue, as indicated in #6773. |
The functions we need to query are:
It seems to be a lot of functions, but please don't be surprised or intimidated by this. Please follow me to understand their nested relationships, the key to understanding the problem.
It provides a basic model for comparing expression values between two groups, where Here is a preliminary response to the question in github Issue #6654. 3.2
The core script of Internally, this function provides several ways to compute representative expression values at the group level by case, i.e. different
#6654 should think that we should implement strategy3 instead of strategy1 to calculate the group mean value in the case of 3.3 3.4 3.5
It's confirmed that the 3.6
This script highlights that
4.2 At times, 4.3 Since 4.4 It is worth discussing whether strategy1 should be replaced by strategy3, see #6654 for details. 4.5 The default method of differential gene expression analysis in |
It would be good to have minimal working mock dataset(s) together with some |
Thank you @caodudu and @nathanhaigh. I was wondering how fold change is calculated for scRNA-seq data using scanpy and came across the following: scverse/scanpy#673. And the function is here: https://github.com/scverse/scanpy/blob/ada761bc5c76007f0afc5a3516f1d05db99ae9ad/scanpy/tools/_rank_genes_groups.py @caodudu, your suggestion to define the @nathanhaigh, how would you recommend to set the This gave me reduced values for the fold changes e.g. see CCL3 in the two tables below (upper table is with the These fold changes are still considerably higher than obtained with the @caodudu, what is |
@lucygarner In the 'RNA' assay, the default strategy is present like this:
The key point to choose |
@lucygarner Decording to your description, the strategy designed by scanpy is |
Apologies everyone for the long wait. 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? devtools::install_github("satijalab/seurat", ref="develop") This should also be in the next Seuratv4 release. |
@saketkc Thank you. But the |
I know the value of "avg_log2FC" calculated by the function
FindMarker
is actually calculated byFoldChange
. But when I tried to calculate with default parameters ( I always only setident.1
andident.2
.), I found that the results of two ways were inconsistent strangely.When I tried in my other data, the results of two ways were consistent surprisingly.
Can the dear author or anyone tell me the potential reason or give me some advice?
The text was updated successfully, but these errors were encountered: