Skip to content

Commit 6f49f90

Browse files
author
Andrew Ramirez
committed
Use quotation marks
1 parent be21422 commit 6f49f90

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

RISE/figures/commonFuncs/plotGeneral.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def plot_r2x(data, rank_vec, ax: Axes):
11-
\"\"\"Plot variance explained (R²X) for RISE and PCA across different ranks.
11+
"""Plot variance explained (R²X) for RISE and PCA across different ranks.
1212
1313
This visualization helps determine the optimal number of components by showing
1414
how variance explained increases with rank. The elbow point where the curve
@@ -18,14 +18,13 @@ def plot_r2x(data, rank_vec, ax: Axes):
1818
----------
1919
data : anndata.AnnData
2020
Preprocessed AnnData object containing single-cell RNA-seq data.
21-
Must have X.obs[\"condition_unique_idxs\"] for RISE decomposition.
21+
Must have X.obs["condition_unique_idxs"] for RISE decomposition.
2222
rank_vec : array-like of int
2323
Array of rank values to test (e.g., [1, 5, 10, 15, 20, 25, 30]).
2424
Each rank represents a different number of components.
2525
ax : matplotlib.axes.Axes
2626
Matplotlib axes object to plot on.
27-
28-
\"\"\"
27+
"""
2928
r2xError = rise_pca_r2x(data, rank_vec)
3029
labelNames = ["Fit: RISE", "Fit: PCA"]
3130
colorDecomp = ["r", "b"]

0 commit comments

Comments
 (0)