Clusters | R Documentation |
Extract the clustering assignments, and return the data.
Assignments can be computed subsetting the mutations that have posterior
values (reponsibilities) below a certain cutoff (default 0
- all
assigments); non-assigned mutations have NA
as cluster label.
Clusters(x, cutoff_assignment = 0)
x |
A MOBSTER fit. |
cutoff_assignment |
Cutoff to compute hard clustering assignments. |
The data stored in x$data
with a column label
reporting
the assigned cluster, or NA
if the maximum cluster probability is below
the threshold value cutoff_assignment
.
data('fit_example', package = 'mobster')
Clusters(fit_example$best)
# Add some cutoff to filter assignments
Clusters(fit_example$best, cutoff_assignment = .8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.