Description Usage Arguments Value Examples
View source: R/cluster_functions.R
Applies PAM (Partitioning around Medoids) clustering to a transcriptomics dataset and appends a cluster column to this dataset for each genes.
1 2 3 4 5 6 7 8 9 |
dataset |
A transcriptomics dataset. First columns should be gene names. All other columns should be expression levels. Not needed if an argument to distance is given. |
distance |
A distance matrix. If a distance matrix has already been
created (such as by using the |
k |
The total number of clusters. |
metric |
The distance metric to be used to calculate the distances
between genes. See |
nthreads |
Number of processor threads to be used for calculating the distance matrix. If not specified then the maximum number of logical cores are used. |
scale |
If the gene activity should be scaled before clustering. |
center |
If the gene activity should be centered before clustering. |
Returns a transcriptomics dataset provided with an additional cluster column appended which denotes which cluster each gene belongs to.
1 | pam.df <- PamClustering(Laurasmappings, k = 10, nthreads = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.