Skip to content

Commit

Permalink
Document sign change in emd
Browse files Browse the repository at this point in the history
Closes #130
  • Loading branch information
scottgigante committed May 14, 2022
1 parent c1cad1e commit 926d7be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scprep/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,11 @@ def differential_expression(
X, Y, measure="difference", direction="both", gene_names=None, n_jobs=-2
):
"""Calculate the most significant genes between two datasets.
If using ``measure="emd"``, the test statistic is multiplied by the sign of
the mean differencein order to allow for distinguishing between positive
and negative shifts. To ignore this, use ``direction="both"`` to sort by the
absolute value.
Parameters
----------
Expand Down

0 comments on commit 926d7be

Please sign in to comment.