tumourkit.utils.preprocessing.save_centroids

tumourkit.utils.preprocessing.save_centroids(centroids: ndarray, centroids_dir: str, name: str) None

Saves the given centroids to the specified directory with the specified name and a ‘.centroids.csv’ extension.

Parameters:
  • centroids (np.ndarray) – The centroids to save.

  • centroids_dir (str) – The directory to save the centroids in.

  • name (str) – The base name for the file (without extensions).