export_rank

besca.st.export_rank(adata, basepath, type='wilcox', labeling_name='louvain')[source]

Export ranked genes to FAIR format for loading into database

wrapper function for ranked_genes 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>)

  • type (str | default = ‘wilcox’) – indicator of the statistical method employed, can be one of: ‘wilcox’ or ‘t-test overest var’ or ‘t-test’

  • labelingname (str | default = louvain) – labeling that will be exported

Returns:

writes to file

Return type:

None