stream2.tl.refit_graph

stream2.tl.refit_graph(adata, use_weights=False, shift_nodes_pos={}, epg_mu=None, epg_lambda=None, cycle_epg_mu=None, cycle_epg_lambda=None)[source]

Refit graph to data

Parameters:
  • use_weights (bool) – Whether to weight points with adata.obs[‘pointweights’]

  • shift_nodes_pos (dict) – Optional dict to hold some nodes fixed at specified positions e.g., {2:[.5,.2]} will hold node 2 at coordinates [.5,.2]

  • epg_mu (float) – ElPiGraph Mu parameter

  • epg_lambda (float) – ElPiGraph Lambda parameter

  • cycle_epg_mu (float) – ElPiGraph Mu parameter, specific for nodes that are part of cycles

  • cycle_epg_lambda (float) – ElPiGraph Lambda parameter, specific for nodes that are part of cycles