Skip to content

Commit f3b1c79

Browse files
Merge pull request #1 from Ekin-Kahraman/fix/figure-naming-and-deps
Fix figure filename prefix and add imageio dependency
2 parents 7907b0f + 8e6292e commit f3b1c79

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Repository = "https://github.com/Ekin-Kahraman/single-cell-rnaseq-immune-profili
3535

3636
[project.optional-dependencies]
3737
dev = ["pytest>=7.0", "pytest-cov>=4.0"]
38+
viz = ["imageio>=2.14"]
3839

3940
[tool.pytest.ini_options]
4041
testpaths = ["tests"]

scripts/08_publication_figures.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ def make_figure(adata):
106106
ax_e.text(0.1, y, label, fontsize=11, fontweight="bold", transform=ax_e.transAxes)
107107
ax_e.text(0.6, y, value, fontsize=11, transform=ax_e.transAxes)
108108

109-
fig.savefig(FIG_DIR / "06_publication_figure.png", dpi=300, bbox_inches="tight")
110-
fig.savefig(FIG_DIR / "06_publication_figure.pdf", bbox_inches="tight")
109+
fig.savefig(FIG_DIR / "08_publication_figure.png", dpi=300, bbox_inches="tight")
110+
fig.savefig(FIG_DIR / "08_publication_figure.pdf", bbox_inches="tight")
111111
plt.close(fig)
112-
print(f"Saved publication figure to {FIG_DIR / '06_publication_figure.png'}")
113-
print(f"Saved publication figure to {FIG_DIR / '06_publication_figure.pdf'}")
112+
print(f"Saved publication figure to {FIG_DIR / '08_publication_figure.png'}")
113+
print(f"Saved publication figure to {FIG_DIR / '08_publication_figure.pdf'}")
114114

115115

116116
def main():

0 commit comments

Comments
 (0)