extract_sample_similarity | R Documentation |
Computes and extracts the sample distance table for samples
analysed using a familiarEnsemble
object to form a familiarData
object.
This table can be used to cluster samples, and is exported directly by
extract_feature_expression
.
extract_sample_similarity(
object,
data,
cl = NULL,
is_pre_processed = FALSE,
sample_limit = waiver(),
sample_cluster_method = waiver(),
sample_linkage_method = waiver(),
sample_similarity_metric = waiver(),
verbose = FALSE,
message_indent = 0L,
...
)
object |
A |
data |
A |
cl |
Cluster created using the |
is_pre_processed |
Flag that indicates whether the data was already
pre-processed externally, e.g. normalised and clustered. Only used if the
|
sample_limit |
(optional) Set the upper limit of the number of samples that are used during evaluation steps. Cannot be less than 20. This setting can be specified per data element by providing a parameter
value in a named list with data elements, e.g.
This parameter can be set for the following data elements:
|
sample_cluster_method |
The method used to perform clustering based on
distance between samples. These are the same methods as for the
If not provided explicitly, this parameter is read from settings used at
creation of the underlying |
sample_linkage_method |
The method used for agglomerative clustering in
If not provided explicitly, this parameter is read from settings used at
creation of the underlying |
sample_similarity_metric |
Metric to determine pairwise similarity
between samples. Similarity is computed in the same manner as for
clustering, but The underlying feature data is scaled to the If not provided explicitly, this parameter is read from settings used at
creation of the underlying |
verbose |
Flag to indicate whether feedback should be provided on the computation and extraction of various data elements. |
message_indent |
Number of indentation steps for messages shown during computation and extraction of various data elements. |
... |
Unused arguments. |
A data.table containing pairwise distance between samples. This data is only the upper triangular of the complete matrix (i.e. the sparse unitriangular representation). Diagonals will always be 0.0 and the lower triangular is mirrored.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.