clusterhclust {goCluster} | R Documentation

## Clusters a dataset using hierarchical clustering

### Description

This function is used by `goCluster` to cluster a dataset with the `hclust` function.

### Usage

    clusterhclust(
    dataset,
    method = "complete",
    distance = "euclidean"
    )

### Arguments

`dataset` | The dataset to be clustered. This has to be a matrix.
`method` | The clustering method that is going to be used by `hclust`.
`distance` | The distance metric that is going to be used by `hclust`.

### Details

Hierarchical clustering will generate a tree that defines gene subgroups based on similarity. Each branchpoint in the tree denotes the splitting of a larger gene group into two smaller groups. The function converts the hclust format into a tree of lists that is being returned to the user.

### Value

The result represent the `hclust`-tree as a list of lists. The terminal nodes of the tree are character vectors holding the unique ids of the genes in the cluster.

### Author(s)

Gunnar Wrobel, work@gunnarwrobel.de, http://www.gunnarwrobel.de.

### See Also

`clusterAlgorithmHclust-class`, `hclust`

### Examples

    ## Get the benomyl setup
    data(benomylsetup)

    ## Extract a fraction of the dataset
    benomyldata <- benomylsetup$data$dataset[1:200,]
    benomylids  <- benomylsetup$data$uniqueid[1:200]

    ## Cluster the dataset
    clusterhclust(exprs(benomyldata))

[Package goCluster version 1.4.0 Index]