citrus.createHierarchyGraph: Create a graph object from clustering hierarchy

Description Usage Arguments Value Author(s) Examples

View source: R/citrus.plot.R

Description

Create a graph object from clustering hierarchy that may be used by other plotting functions.

Usage

1
citrus.createHierarchyGraph(citrus.clustering, selectedClusters)

Arguments

citrus.foldFeatureSet

A citrus.foldFeatureSet object. Clusters for which features are calculated are included in the graph.

citrus.foldClustering

A citrus.foldClustering object. Used to determine relationships between clusters.

Value

A graph object and other properties for plotting.

graph

An igraph graph object.

layout

An igraph layout for the graph.

plotSize

Size of PDF for plotting (inches) calculated based on the number of clusters to be plotted.

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)

# Large enough clusters
largeEnoughClusters = citrus.selectClusters(citrus.clustering)

# Create graph for plotting
hierarchyGraphStuff = citrus.createHierarchyGraph(citrus.clustering,selectedClusters=largeEnoughClusters)

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