Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions distance_tests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
}
],
"source": [
"etest = pt.tl.DistanceTest(\"edistance\", n_perms=1000, obsm_key=\"X_pca\", alpha=0.0015)\n",
"etest = pt.tl.DistanceTest(\"edistance\", n_perms=1000, obsm_key=\"X_pca\", padj_threshold=0.0015)\n",
"tab = etest(adata, groupby=obs_key, contrast=contrast)"
]
},
Expand All @@ -165,7 +165,7 @@
"metadata": {},
"source": [
"We recommend using the adjusted p-values, which are corrected for multiple testing.\n",
"You might have to specify a lower `alpha` value for the adjusted p-values to be significant, depending on the number of permutations, the number of cells in each group, and the number of groups tested (each group increases the number of tests made and therefore affects the adjusted p-value).\n",
"You might have to specify a lower `padj_threshold` value for the adjusted p-values to be significant, depending on the number of permutations, the number of cells in each group, and the number of groups tested (each group increases the number of tests made and therefore affects the adjusted p-value).\n",
"Also note that the lowest p-value you can get is 1 / n_permutations, which is the probability of getting the observed distance by chance."
]
},
Expand Down