treeluts: LUT generation for hierarchical clustering tree

Description Usage Arguments Value Author(s) Examples

View source: R/clusterluts.R

Description

Main function of this package: clusters defines the cluster assignments per cut. The number of clusters is taken from the unique values per column (need not be regular).

Usage

1
2
3
4
5
6
7
8
treeluts(
  clusters = read.tree(),
  outdir = "luts",
  basename = "lut",
  lut.length = 256,
  verbose = getOption("verbose"),
  ...
)

Arguments

clusters

matrix with cluster assignments, one column per cut

outdir

where to write the LUTs to

basename

prefix for LUT names ['lut']

lut.length

length of the LUT (number of entries [256])

verbose

set to TRUE to see the LUT filenames

...

ignored

Value

a vector with the number of color entries per LUT generated (invisibly)

Author(s)

Benno Pütz puetz@psych.mpg.de

Examples

1
2
3
4
5
6
set.seed(42)
treeluts(cbind(sample(1:5,20,TRUE),1:20), tempdir(), "exmpl", verbose=TRUE)
## Not run: 
 treeluts(outdir = path.expand("~/Work/4philipp/BrainLUTs/luts"),  verbose=TRUE)

## End(Not run)

bennop/clusterLUTs documentation built on Nov. 21, 2020, 9:07 a.m.