sfaira.data.DatasetGroupDirectoryOriented.write_ontology_class_maps

DatasetGroupDirectoryOriented.write_ontology_class_maps(fn, attrs: List[str], protected_writing: bool = True, **kwargs)

Write cell type maps of free text cell types to ontology classes.

Parameters
  • fn – File name of tsv to write class maps to.

  • attrs – Attributes to create a tsv for. Must correspond to *_obs_key in yaml.

  • protected_writing – Only write if file was not already found.