assign_cells_to_clones | R Documentation |
Assign cells to clones from cardelino results
assign_cells_to_clones(prob_mat, threshold = 0.5)
prob_mat |
numeric matrix (cells x clones) of clone posterior
probabilities as output by |
threshold |
numeric(1), posterior probability threshold for cell-clone assignment: if posterior probability is above threshold, assign cell to clone, otherwise leave cell "unassigned" |
a data.frame
with cell ID, assigned clone label and maximum
posterior probability across clones.
Davis McCarthy
data(example_donor) assignments <- clone_id(A_clone, D_clone, Config = tree$Z, inference = "EM") df <- assign_cells_to_clones(assignments$prob) head(df) table(df$clone)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.