-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add plots for DE analysis and unify plotting API (#654)
* EdgeR example and first paired plot implementation * Reuse plot parameters * Added DE plotting functionalities * Added plot previews * Unify plotting API * Updated all plots to new API * Resolved ToDos * Coda plots docs with dict * Final coda docs edits * Plot stars in legend in black * Apply suggestions from code review Co-authored-by: Lukas Heumos <lukas.heumos@posteo.net> * Update pertpy/tools/_differential_gene_expression/_base.py Co-authored-by: Lukas Heumos <lukas.heumos@posteo.net> * Update pertpy/tools/_differential_gene_expression/_base.py Co-authored-by: Lukas Heumos <lukas.heumos@posteo.net> * Removed all save parameters * Removed _utils.py file * Fixed edgeR test * Use p-values from results_df in plot_paired * PR Reviews * Pull submodule --------- Co-authored-by: Lukas Heumos <lukas.heumos@posteo.net>
- Loading branch information
Showing
24 changed files
with
936 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from textwrap import dedent | ||
|
||
|
||
def _doc_params(**kwds): # pragma: no cover | ||
"""\ | ||
Docstrings should start with "\" in the first line for proper formatting. | ||
""" | ||
|
||
def dec(obj): | ||
obj.__orig_doc__ = obj.__doc__ | ||
obj.__doc__ = dedent(obj.__doc__.format_map(kwds)) | ||
return obj | ||
|
||
return dec | ||
|
||
|
||
doc_common_plot_args = """\ | ||
show: if `True`, shows the plot. | ||
return_fig: if `True`, returns figure of the plot.\ | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.