top_genes,ClusterSet-method | R Documentation |
Extract the most highly co-expressed genes of each gene cluster.
## S4 method for signature 'ClusterSet'
top_genes(object, top = 20, fast = FALSE, distance_method = NULL)
object |
A |
top |
A value for the number of genes to select from each cluster. |
fast |
Use qlcMatrix::corSparse for pearson computation. Default to cor(). Default to FALSE for retro-compatibility. |
distance_method |
Overright the object distance_method (slot parameters$distance_method). Useful when object was created using cluster_set_from_matrix() for instance. One of c("kendall", "spearman", "cosine", "euclidean", "pearson") or NULL. |
A ClusterSet
object.
# Set verbosity to 1 to display info messages only.
set_verbosity(1)
# Load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
# Store top genes in the object
pbmc3k_medium_clusters <- top_genes(pbmc3k_medium_clusters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.