-
Notifications
You must be signed in to change notification settings - Fork 5
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
Question about simulated data #1
Comments
Hi, this is not the way to calculate the power in the simulation. In the simulation, we know the true signal genes, and therefore we calculate the power directly by counting the number of true signal and false signals among the top genes. The power is essentially the number of true signals detected given certain number of false signals detected. let's say we simulate 1000 genes with 100 signals and 900 non signals. Then you apply both methods to the data, and order the pvalues first, then count how many top genes are signals and how many are non signals. Given detected one false signal, how many true signal you can get, that's the power. The q-value or the adjusted p values are mainly for the real data, where we don't know the fundamental truth. Also, the example data is just a toy example, for the detail simulation setting, you can check the supplementary material in our paper. Let me know if you have any further questions. |
Thanks for the clarification! |
Hi! Thanks for the cool software. I downloaded the example simulated data from
processed_data/sim_MOB_pattern2_fc3_tau35_count_power1.csv
and when I ran SpatialDE and SPARK on the data, I got 0 (SpatialDE) and 112 (SPARK) significant genes atqval < 0.05
. Is this (a single replicate of) the same data used for figure 1c/the expected result? If I understand the plot correctly, it seems that at FDR = 0.05, more genes should be recovered.Code for spatialDE
Code for SPARK
The text was updated successfully, but these errors were encountered: