clustering using leiden algorithm
0
0
Entering edit mode
9 months ago

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 • 560 views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

thank you very much

ADD REPLY

Login before adding your answer.

Traffic: 1427 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6