tumourkit.utils.preprocessing.save_pngcsv
- tumourkit.utils.preprocessing.save_pngcsv(png: ndarray, csv: DataFrame, png_path: str, csv_path: str, name: str) None
Saves the given PNG and CSV files to the specified directories with the specified name.
- Parameters:
png (np.ndarray) – The PNG file to save.
csv (pd.DataFrame) – The CSV file to save.
png_path (str) – The directory to save the PNG file in.
csv_path (str) – The directory to save the CSV file in.
name (str) – The base name for the files (without extensions).
The PNG file is saved with a ‘.GT_cells.png’ extension, and the CSV file is saved with a ‘.class.csv’ extension.