saveRDS adaptation for Kandinsky data. it can save Kandinsky data alone or as part of a Seurat object

saveKanData(object, file = NULL, with.seurat = T)

# S4 method for class 'Kandinsky'
saveKanData(object, file = NULL, with.seurat = T)

# S4 method for class 'Seurat'
saveKanData(object, file = NULL, with.seurat = T)

Arguments

object

a Seurat object containing Kandinsky data, or a Kandinsky object

file

character string specifying the path to the file where to save Kandinsky data. It must be in .rds format

with.seurat

boolean, whether saving the whole Seurat object together with Kandinsky data (`TRUE`) or Kandinsky data alone (`FALSE`). Default value is set to `TRUE`. Ignored when `object` corresponds to a Kandinsky object