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
Hello, when I manully calculated the log2FC, I found the result was different from the FindMarkers function; When I check the soure code I found this function calculating logFC like this:
I tested this code manully, and its result were the same as the FindMarkers function:
However, what I previoussly thought the meaning of logFC is the log(avg_A/avg_B) ; this caculation seems not like this(I know the add 1 operation to avod zero but don't understand why calculate e(x)), are there any reasons behind this?; And I found there was a big difference between this function's result and results from direct calculation;
log2(mean(MNRAKO)/mean(MNRALC)) =-0.16
This will cause a different result when I choose the logFC cretia to filter some genes. Which one should I choose better?
The text was updated successfully, but these errors were encountered:
Hello, when I manully calculated the log2FC, I found the result was different from the FindMarkers function; When I check the soure code I found this function calculating logFC like this:
![23c4796d9cbcfb9db36d7cf754c0bc2](https://private-user-images.githubusercontent.com/93318795/320287108-d88756e5-1a3c-404e-90b3-915ae125d856.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTA4NzQsIm5iZiI6MTczODg1MDU3NCwicGF0aCI6Ii85MzMxODc5NS8zMjAyODcxMDgtZDg4NzU2ZTUtMWEzYy00MDRlLTkwYjMtOTE1YWUxMjVkODU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDE0MDI1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViZThkZWM3N2E5ODhjMWFkMzc5MDNiNjVjZGYyOTFhMTFkZWRmYjA1NTQ5YjZiYTI0ODY2NDQxMWE5N2EzMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GjWFhwMRZcCugSJIHUHdWkVN41INRPvYv0YJXL6yIYA)
I tested this code manully, and its result were the same as the FindMarkers function:
![96003edab84cb60cf44fa535afe38e9](https://private-user-images.githubusercontent.com/93318795/320287263-4ca44dab-4eca-49d6-b9bf-ac76ea606b35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTA4NzQsIm5iZiI6MTczODg1MDU3NCwicGF0aCI6Ii85MzMxODc5NS8zMjAyODcyNjMtNGNhNDRkYWItNGVjYS00OWQ2LWI5YmYtYWM3NmVhNjA2YjM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDE0MDI1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4NTBhYmNmMWRiNDgxZDc0YTY4ZjM2ZjhkZjc5ZGI1MWJkYmVjMTc0OWVmYzhiNzNlY2ZlMTI0MjAwMjU4NzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.LHa6wISf4qkB2P7oNFeV2SY8JvY7_Zgu5LAyCKRBUNg)
However, what I previoussly thought the meaning of logFC is the log(avg_A/avg_B) ; this caculation seems not like this(I know the add 1 operation to avod zero but don't understand why calculate e(x)), are there any reasons behind this?; And I found there was a big difference between this function's result and results from direct calculation;
This will cause a different result when I choose the logFC cretia to filter some genes. Which one should I choose better?
The text was updated successfully, but these errors were encountered: