Skip to content

Commit

Permalink
fix bugs perturbation nb
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseabright96 committed Jun 18, 2024
1 parent d79e1f0 commit 4cdb6d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/scgen_perturbation_prediction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"outputs": [],
"source": [
"train_new = train[~((train.obs[\"cell_type\"] == \"CD4T\") &\n",
" (train.obs[\"condition\"] == \"stimulated\"))]"
" (train.obs[\"condition\"] == \"stimulated\"))].copy()"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ scanpydoc = {version = ">=0.5", optional = true}
scikit-misc = {version = ">=0.1.3", optional = true}
scvi-tools = ">=0.20.0"
seaborn = ">=0.11"
numpy = "<2.0.0"
sphinx = {version = ">=4.1,<4.4", optional = true}
sphinx-autodoc-typehints = {version = "*", optional = true}
sphinx-material = {version = "*", optional = true}
Expand Down
2 changes: 1 addition & 1 deletion scgen/_scgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def reg_mean_plot(
x=x,
y=y,
arrowprops=dict(arrowstyle="->", color="grey", lw=0.5),
force_points=(0.0, 0.0),
force_static=(0.0, 0.0),
)
if legend:
pyplot.legend(loc="center left", bbox_to_anchor=(1, 0.5))
Expand Down

0 comments on commit 4cdb6d0

Please sign in to comment.