Skip to content

Commit

Permalink
fix sum error
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahOuologuem committed Apr 11, 2024
1 parent db61ab9 commit b3d366b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panpipes/python_scripts/plot_qc_spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@

axs[2].set_title("Transcripts per FOV")
sns.histplot(
spatial.obs.groupby("fov").sum()["total_counts"],
spatial.obs.groupby('fov')[['total_counts']].sum(),
kde=False,
ax=axs[2],
)
Expand All @@ -160,6 +160,7 @@
#plt.savefig("merfish_histo.png", dpi=300)
plt.savefig(figdir + "/histograms."+sprefix +".png", dpi=300) # Adjust dpi as needed
plt.close() # Close the figure to free up memory



L.info("Done")
Expand Down

0 comments on commit b3d366b

Please sign in to comment.