buildTreeFromGenePanel.RdBuild and plot a dendrogram using correlation-based average linkage hierarchical clustering and only using a specified set of genes. The output is the expected accuracy of mapping to each node in the tree, which gives an idea of the best-case expected results for mFISH analysis.
dendrogram for mapping. Ignored if medianDat is passed
normalized data of the REFERENCE data set. Ignored if medianDat is passed
normalized data of the MAPPING data set. Default is to map the data onto itself.
representative value for each leaf and node. If not entered, it is calculated
minimum number of genes required to be expressed in a cluster (column of medianDat) for the cluster to be included (default=2)
cluster calls for each cell
if TRUE, returns the fraction of cells mapped to a node which are were orginally clustered from that node; if FALSE (default) returns the fraction of cells clustered under a node which are mapped to the correct node.
which genes to include in the correlation mapping
should the dendrogram be plotted (default = TRUE)
margins (for use with par)
add title and labels to plot (default is NULL)
additional parameters for cor
should the dendrogram be returned (default = TRUE)
a list where the first entry is the resulting tree and the second entry is the fraction of cells correctly mapping to each node using the inputted gene panel.