dimension_reduction-ConsensusPartition-method | R Documentation |
Visualize samples (the matrix columns) after dimension reduction
## S4 method for signature 'ConsensusPartition'
dimension_reduction(object, k, top_n = NULL,
method = c("PCA", "MDS", "t-SNE", "UMAP"),
control = list(), color_by = NULL,
internal = FALSE, nr = 5000,
silhouette_cutoff = 0.5, remove = FALSE,
scale_rows = object@scale_rows, verbose = TRUE, ...)
object |
A |
k |
Number of subgroups. |
top_n |
Top n rows to use. By default it uses all rows in the original matrix. |
method |
Which method to reduce the dimension of the data. |
color_by |
If annotation table is set, an annotation name can be set here. |
control |
A list of parameters for |
internal |
Internally used. |
nr |
If number of matrix rows is larger than this value, random |
silhouette_cutoff |
Cutoff of silhouette score. Data points with values less than it will be mapped with cross symbols. |
remove |
Whether to remove columns which have less silhouette scores than the cutoff. |
scale_rows |
Whether to perform scaling on matrix rows. |
verbose |
Whether print messages. |
... |
Pass to |
Locations of the points.
Zuguang Gu <z.gu@dkfz.de>
data(golub_cola)
dimension_reduction(golub_cola["ATC", "skmeans"], k = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.