PhenoGraph icon indicating copy to clipboard operation
PhenoGraph copied to clipboard

possibility for directing intermediate files from `cluster` to a specified directory such as tmp

Open matt-sd-watson opened this issue 6 months ago • 0 comments

I an looking into integrating phenograph into a web-based Flask app that writes temporary caches in a specified directory. I noticed that when calling the cluster function from phenograph:

communities, graph, Q = phenograph.cluster(pd.DataFrame(adata.obsm['X_pca']),k=k) # run PhenoGraph

Several intermediate files are written in the current working directory:

Screenshot from 2023-12-19 10-48-52

Is it possible to direct phenograph to write these files in a tmp directory? For the purposes of the application, it is not desirable to have the tmp files written where the application source code is hosted.

matt-sd-watson avatar Dec 19 '23 15:12 matt-sd-watson