kaizhang / SnapATAC2

Single-cell epigenomics analysis tools
https://kzhang.org/SnapATAC2/
222 stars 24 forks source link

save images #275

Closed TingTingShao closed 6 months ago

TingTingShao commented 6 months ago

Hi,

Code

snap.pl.umap(dat, color=f"leiden_{resolution}", use_rep="X_umap", out_file=output_filename)

Problem: image written to the disk, but it's still running, no sign of finishing up. Could I please ask why? it has been bothering me for a while, even when I terminate the run, the images are still there, but it just can not finish the run by itself unless force-quittting.

Thanks! tingting

kaizhang commented 6 months ago

Try saving the image as a png file.

TingTingShao commented 6 months ago

The otput_filenames are defined as .png files.

TingTingShao commented 6 months ago

I think saving images step is still a bit slow, and another tip is that the core can only be set as 1 to prevent read anndataset conflicts.