lynx.trajectory.prune_tree¶
- lynx.trajectory.prune_tree(adata, tips_to_keep, verbose=False)[source]¶
Remove unwanted tips by calling scf.tl.cleanup and return the node index mapping.
- Parameters:
- Returns:
result – Dictionary containing: - ‘branches_removed’: dict mapping original tip -> branch nodes removed - ‘all_nodes_removed’: array of all removed node indices - ‘node_map’: dict mapping original node idx -> new idx after pruning
- Return type: