Skip to content

Commit

Permalink
docs: improve lfc_threshold example
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisMuzellec committed Sep 7, 2023
1 parent e226692 commit bc41204
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions examples/plot_minimal_pydeseq2_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,19 @@

# %%
# The results are then stored in the ``results_df`` attribute (``stat_res.results_df``).

# %%
# Optional: threshold-based tests
# """"""""""""""""""""""""""""""""
#
# The user can specify a (log2) log fold change under the null hypothesis and an
# alternative hypothesis to re-compute Wald statistics and p-values.
# The alternative hypothesis corresponds to what the user wants to find rather than the
# null hypothesis. It can take one of ["greaterAbs", "lessAbs", "greater", "less"].
#
# null hypothesis. It can take one of the values
# ``["greaterAbs", "lessAbs", "greater", "less"]``.

stat_res.summary(lfc_null=0.1, alt_hypothesis="greaterAbs")
stat_res.plot_MA()
stat_res.plot_MA(s=20)

# %%
# LFC shrinkage
Expand Down

0 comments on commit bc41204

Please sign in to comment.