export_clustering

besca.st.export_clustering(adata, basepath, method)[source]

Export cluster to cell mapping to FAIR format for loading into database

wrapper function for louvain and labeling_info with correct folder structure/names for loading into the database.

Parameters:
  • adata (ÀnnData) – AnnData object that is to be exported

  • basepath (str) – root path to the Analysis folder (i.e. ../analyzed/<ANALYSIS_NAME>)

  • method (str) – method of clustering used previously, should be leiden or louvain

Returns:

writes to file

Return type:

None