construct_new_graph | R Documentation |
This function constructs a new graph for a given ClusterSet object based on selected genes. The graph is constructed using the Density K-Nearest Neighbor (DKNN) method.
construct_new_graph(object = NULL, k = 5, output_path = NULL, name = NULL)
object |
A ClusterSet object. |
k |
The number of nearest neighbors to consider for each gene. |
output_path |
a character indicating the path where the output files will be stored. |
name |
a character string giving the name for the output files. If NULL, a random name is generated. |
A ClusterSet object.
# Set verbosity to 1 to display info messages only.
set_verbosity(1)
# Create a matrix with 4 signatures
m <- create_4_rnd_clust()
# Select informative features
res <- select_genes(m[1:600,],
distance = "pearson",
k = 75,
noise_level = 0.3,
fdr = 1e-8,
row_sum = -Inf)
# Construct a new graph based on genes selected with select_genes()
res <- construct_new_graph(object = res, k = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.