tumourkit.postprocessing.draw_barcode.draw_barcode

tumourkit.postprocessing.draw_barcode.draw_barcode(rips_persistence: RipsPersistence, X: Any, max_edge_length: float, max_dim: int, save_path: str)

Draws the persistence diagram and saves it into csv.

Parameters:
  • rips_persistence (RipsPersistence) – Object for computing the persistence diagram.

  • X (List of List of float or List of np.ndarray) – Either point array or distance matrix.

  • max_edge_length (float) – Maximum edge legth for including in complexes.

  • max_dim (int) – Compute diagrams up to this dimension, included.

  • save_path (str) – The file path to save the resulting graph visualization.