network_sift | R Documentation |
Sifting network
network_sift(
network_table,
matrix = NULL,
meta_data = NULL,
pseudotime_column = NULL,
method = c("entropy", "max"),
entropy_method = c("Shannon", "Renyi"),
effective_entropy = FALSE,
shuffles = 100,
entropy_nboot = 300,
lag_value = 1,
entropy_p_value = 0.05,
cores = 1,
verbose = TRUE
)
network_table |
The weight data table of network. |
matrix |
The expression matrix. |
meta_data |
The meta data for cells or samples. |
pseudotime_column |
The column of pseudotime. |
method |
The method used for filter edges.
Could be choose |
entropy_method |
If setting |
effective_entropy |
Default is |
shuffles |
Default is |
entropy_nboot |
Default is |
lag_value |
Default is |
entropy_p_value |
P value used to filter edges by entropy. |
cores |
The number of cores to use for parallelization with |
verbose |
Logical value, default is |
Sifted network table
## Not run:
data("example_matrix")
data("example_meta_data")
data("example_ground_truth")
network_table <- inferCSN(example_matrix)
network_table_sifted <- network_sift(network_table)
network_table_sifted_entropy <- network_sift(
network_table,
matrix = example_matrix,
meta_data = example_meta_data,
pseudotime_column = "pseudotime",
lag_value = 2,
shuffles = 0,
entropy_nboot = 0
)
plot_network_heatmap(
example_ground_truth[, 1:3],
heatmap_title = "Ground truth",
show_names = TRUE,
rect_color = "gray70"
)
plot_network_heatmap(
network_table,
heatmap_title = "Raw",
show_names = TRUE,
rect_color = "gray70"
)
plot_network_heatmap(
network_table_sifted,
heatmap_title = "Filtered",
show_names = TRUE,
rect_color = "gray70"
)
plot_network_heatmap(
network_table_sifted_entropy,
heatmap_title = "Filtered by entropy",
show_names = TRUE,
rect_color = "gray70"
)
calculate_auc(
network_table,
example_ground_truth,
plot = TRUE
)
calculate_auc(
network_table_sifted,
example_ground_truth,
plot = TRUE
)
calculate_auc(
network_table_sifted_entropy,
example_ground_truth,
plot = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.