mmc.marker()

mmochi.utils.marker(adata, parameter, data_key=DATA_KEY, allow_multiple=False)

Lookup a marker name within the .X or the .obsm[data_key]

Parameters:
  • adata (AnnData) – Object with data in adata.X or adata.obsm[data_key]
  • parameter (Union[str, List[str]]) – Parameters to search for in adata
  • data_key (Optional[str] (default: DATA_KEY)) – Location in the .obsm to look for marker name If None, searches adata.var_names
  • allow_multiple (bool (default: False)) – Whether to return a list of matches if there are multiple matches or throw an error
Returns:

Name(s) of the marker in the adata object

Return type:

marker_name