write_clust: Write the cluster to files.

write_clustR Documentation

Write the cluster to files.

Description

Write the cluster to files.

Usage

write_clust(
  object,
  sep = "\n",
  file_prefix = "scigenex_clust",
  file_suffix = ".csv",
  path = NULL,
  single_file = FALSE,
  write_cname = FALSE
)

Arguments

object

a ClusterSet object.

sep

The separator

file_prefix

A file prefix.

file_suffix

A file suffix.

path

A directory to store the files.

single_file

Logical. Whether to write all clusters in a single file (one cluster / line). Need to change the default separator (e.g to ","). The file_prefix is used as file name.

write_cname

Whether to add the cluster name. The cluster name is written as a prefix of each line in file(s) and followed by two pipes ("||").

Examples

# load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
write_clust(pbmc3k_medium_clusters[1:3,], path="/tmp")

dputhier/dbfmcl documentation built on April 17, 2025, 4:41 a.m.