load_previous_results: load_previous_results

Description Usage Arguments Value Examples

View source: R/clustering.R

Description

Get previous XINA clustering results to R space

Usage

1
2
load_previous_results(clustering_dir = getwd(), data_column = NULL,
  fp_clusters = "xina_clusters.csv")

Arguments

clustering_dir

The directory path of XINA clustering results

data_column

A vector containing column names of data matrix

fp_clusters

File path of XINA clustering results

Value

Comma-separated file containing aligned XINA clustering results.

Examples

1
2
3
4
5
6
7
# Load XINA's example data
data(xina_example)
write.csv(example_clusters$aligned,"xina_clusters_aligned.csv")
write.csv(example_clusters$clusters,"xina_clusters.csv")

# Reload the clustering result
example_clusters_reloaded <- load_previous_results(".")

XINA documentation built on Nov. 8, 2020, 5:32 p.m.