Learn R Programming

QuantumClone (version 1.0.0.6)

Create_prior_cutTree: Create priors from hierarchical clustering

Description

Creates weights and position priors from the hierachical clustering (tree) given a number of clusters Nclust. The centers of each cluster is found by \(Center = \frac{\sum\limits_{m \in cluster}{Normalized Alt_{m}}}{\sum\limits_{m \in cluster}{Normalized Alt_{m}}}\)

Usage

Create_prior_cutTree(tree, Schrod_cells, NClus, jitter = FALSE)

Arguments

tree

The tree generated by Cellular_preclustering

Schrod_cells

The classic output from Schrodinger function

NClus

the number of clusters to cut the data

jitter

Should it jitter weights and centers around values found?

Value

returns a list with:

weigths

The proportion of mutations in each cluster

centers

A list with a numeric vector for each sample, with the cellularity of each cluster

@importFrom stats cutree