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}}}\)
Create_prior_cutTree(tree, Schrod_cells, NClus, jitter = FALSE)The tree generated by Cellular_preclustering
The classic output from Schrodinger function
the number of clusters to cut the data
Should it jitter weights and centers around values found?
returns a list with:
The proportion of mutations in each cluster
A list with a numeric vector for each sample, with the cellularity of each cluster
@importFrom stats cutree