obtain_dblabel

besca.tl.sig.obtain_dblabel(nomenclature_file: str, cnames, reference_label='short_dblabel')[source]

Matches the cnames obtained by the make_annot function to the db label (standardized label).

Parameters:
  • nomenclature_file ('str') – path to the nomenclature file (one available in besca/datasets)

  • cnames (panda.DataFrame) – a dataframe with cluster to cell type attribution per distinct levels

  • reference_label ('str') – column in nomenclature file that corresponds to the names in cnames (dblabel_short if from make_annot function)

Returns:

  • panda.DataFrame containing the different levels of the nomenclature indexed by cluster

  • (based on cnames index)