Skip to content

Commit 139bee2

Browse files
committed
fix volcano plots
1 parent 429fc1d commit 139bee2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

grassp/plotting/qc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ def bait_volcano_plots(
177177
if "pvals" not in data_sub.layers.keys():
178178
raise ValueError("anndata object must contain a 'pvals' layer")
179179
pvals = -np.log10(data_sub.layers["pvals"][:, 0])
180-
lim = np.abs(pvals).max()
181180
ax.scatter(enrichments, pvals, c="black", s=1, marker=".")
182181
ax.axhline(-np.log10(sig_cutoff), color="black", linestyle="--")
183182
ax.axvline(lfc_cutoff, color="black", linestyle="--")
184183
ax.axvline(-lfc_cutoff, color="black", linestyle="--")
185184
mask = (np.abs(enrichments) > lfc_cutoff) & (pvals > -np.log10(sig_cutoff))
186185
ax.scatter(enrichments[mask], pvals[mask], c="red", s=1, marker=".")
186+
lim = np.abs(enrichments).max()
187187
ax.set_xlim(-lim, lim)
188188
ax.set_title(bait)
189189
if highlight is not None:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies = [
3333
"anndata",
3434
"scipy",
3535
"networkx",
36-
"scikit-learn",
36+
# "scikit-learn",
3737
"matplotlib",
3838
"umap-learn",
3939
"pysankeybeta",

0 commit comments

Comments
 (0)