This is a test version of Biostars. For the public version, visit https://www.biostars.org.
clustering using leiden algorithm

Hello I'm trying to perform clustering on my data using scanpy.

I used this tutorial: https://github.com/mousepixels/sanbomics_scripts/blob/main/single_cell_analysis_complete_class.ipynb

My question is how I can store the plot generated using this command line in a file (png format for example):

sc.pl.umap(adata, color = ['leiden', 'Sample'], frameon = False)

Thank you

leiden scanpy scrna-seq

Easiest way is the save argument: sc.pl.umap(adata, color=['leiden', 'Sample'], frameon=False, save='myplot.png')

0 answers

No answers yet.

Log in to answer this question.