export_metadata¶
- besca.st.export_metadata(adata, basepath, n_pcs=3, umap=True, tsne=False)[source]¶
- Export metadata in FAIR format for loading into database - wrapper function for analysis_metadata 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>) 
- n_pcs (int | default = 3) – number of PCA components to export 
- umap (bool | default = True) – boolian indicator if umap coordinates should be exported 
- tsne (bool | default = False) – boolian indicator if tSNE coordinates should be exported 
 
- Returns:
- writes to file 
- Return type:
- None