Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 24, 2024
1 parent b9651f8 commit 9555fb6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pertpy/tools/_dialogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ def plot_split_violins(
n_counts_key = "nCount_RNA", n_mpcs = 3)
>>> adata, mcps, ws, ct_subs = dl.calculate_multifactor_PMD(adata, normalize=True)
>>> dl.plot_split_violins(adata, split_key='gender', celltype_key='cell.subtypes')
Preview:
.. image:: ../_static/docstring_previews/dialogue_violin.png
"""
Expand All @@ -1108,12 +1108,7 @@ def plot_split_violins(
return ax

def plot_pairplot(
self,
adata: AnnData,
celltype_key: str,
color: str,
sample_id: str,
mcp: str = "mcp_0"
self, adata: AnnData, celltype_key: str, color: str, sample_id: str, mcp: str = "mcp_0"
) -> PairGrid:
"""Generate a pairplot visualization for multi-cell perturbation (MCP) data.
Expand All @@ -1139,7 +1134,7 @@ def plot_pairplot(
n_counts_key = "nCount_RNA", n_mpcs = 3)
>>> adata, mcps, ws, ct_subs = dl.calculate_multifactor_PMD(adata, normalize=True)
>>> dl.plot_pairplot(adata, celltype_key="cell.subtypes", color="gender", sample_id="clinical.status")
Preview:
.. image:: ../_static/docstring_previews/dialogue_pairplot.png
"""
Expand Down

0 comments on commit 9555fb6

Please sign in to comment.