Skip to content

Commit

Permalink
code linting / formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom committed Jan 30, 2024
1 parent 03a5576 commit aa66832
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions polyclonal/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ def lineplot_and_heatmap(
-------
altair.Chart
Interactive plot.
"""
if addtl_tooltip_stats is None:
addtl_tooltip_stats = []
Expand Down
2 changes: 2 additions & 0 deletions polyclonal/polyclonal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2867,6 +2867,7 @@ def filter_variants_by_seen_muts(
variants_df : pandas.DataFrame
Copy of input dataframe, with rows of variants
that have unseen mutations removed.
"""
variants_df = variants_df.copy()

Expand Down Expand Up @@ -3154,6 +3155,7 @@ def mut_escape_corr(self, ref_poly):
-------
corr_df : pandas.DataFrame
Pairwise epitope correlations for escape.
"""
if self.mut_escape_df is None or ref_poly.mut_escape_df is None:
raise ValueError("Both objects must have `mut_escape_df` initialized.")
Expand Down
1 change: 1 addition & 0 deletions polyclonal/polyclonal_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ def mut_escape_corr_heatmap(
Plot squared correlation (eg, :math:`R^2` rather :math:`R`).
**kwargs
Keyword args for :func:`polyclonal.plot.corr_heatmap`
"""
corr_label = {"pearson": "r", "kendall": "tau", "spearman": "rho"}[method]
corr2_label = f"{corr_label}2"
Expand Down

0 comments on commit aa66832

Please sign in to comment.