dandelion.polars.tools.project_pseudotime_to_cell

dandelion.polars.tools.project_pseudotime_to_cell(adata, pb_adata, term_states, suffix='')[source]

Function to project pseudotime & branch probabilities from pb_adata (pseudobulk adata) to adata (cell adata).

Parameters:
  • adata (AnnData) – Cell adata, preferably after ddl.tl.setup_vdj_pseudobulk()

  • pb_adata (AnnData) – neighbourhood/pseudobulked adata

  • term_states (list[str]) – list of terminal states with branch probabilities to be transferred

  • suffix (str, optional) – suffix to be added after the added column names, default “” (none)

Returns:

subset of adata whereby cells that don’t belong to any neighbourhood are removed and projected pseudotime information stored in .obs - pseudotime+suffix, and ‘prob_’+term_state+suffix for each terminal state

Return type:

AnnData