citrus.getRelatedClusterIds: Get ancestors or decendants of a cluster

Description Usage Arguments Value Author(s) Examples

Description

Get ancestors or decendants of a cluster for hierarchical clustering

Usage

1
2
3
citrus.getClusterDecendants(clusterId, mergeOrder)

citrus.getClusterAncestors(clusterId, mergeOrder)

Arguments

clusterId

ID of a cluster for which to retreive related clusters.

mergeOrder

mergeOrder result from hclust object.

Value

Vector of cluster ids that are decendants of clusterId argument.

Author(s)

Robert Bruggner

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# Where the data lives
dataDirectory = file.path(system.file(package = "citrus"),"extdata","example1")

# Create list of files to be analyzed
fileList = data.frame("unstim"=list.files(dataDirectory,pattern=".fcs"))

# Read the data
citrus.combinedFCSSet = citrus.readFCSSet(dataDirectory,fileList)

# List of columns to be used for clustering
clusteringColumns = c("Red","Blue")

# Cluster data
citrus.clustering = citrus.cluster(citrus.combinedFCSSet,clusteringColumns)

# Get decendants
citrus.getClusterDecendants(15000,citrus.clustering$clustering$merge)

# Get ancestors
citrus.getClusterAncestors(15000,citrus.clustering$clustering$merge)

junyzhou10/test documentation built on Nov. 4, 2019, 3:27 p.m.