write_clust-ClusterSet-method: Write the cluster to files.

write_clust,ClusterSet-methodR Documentation

Write the cluster to files.

Description

Write the cluster to files.

Usage

## S4 method for signature 'ClusterSet'
write_clust(
  object,
  sep = "\n",
  file_prefix = "scigenex_clust_",
  path = NULL,
  single_file = FALSE
)

Arguments

object

a ClusterSet object.

sep

The separator

file_prefix

A file prefix.

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.

Examples

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

dputhier/scigenex documentation built on Feb. 18, 2025, 2:27 p.m.