network_make_binary | R Documentation |
This function takes a weighted adjacency matrix and created a binary adjacency matrix, filtering the unsignificant edges, if specified
network_make_binary(
adj_mat,
threshold = NULL,
print_message = TRUE,
filtered = FALSE
)
adj_mat |
adjacency matrix to be converted. |
threshold |
relevant only for not-prefiltered input matrix. If not
specified, the function will filter based on the disparity measure (Neal, Z.P. (2022).
backbone: An R package to extract network backbones) (recommended). If you
want to specify threshold, we recommend to use |
print_message |
a logical value indicating whether or not a threshold message shall be printed. |
filtered |
a logical value indicating whether the input adjacency network has been already prefiltered and thus no more edges should be removed |
Sergio Vasquez, Hajk-Georg Drost and Nikola Kalábová
# path to PPCOR output file
ppcor_output <- system.file('beeline_examples/PPCOR/outFile.txt', package = 'edgynode')
# import PPCOR specific output
ppcor_parsed <- ppcor(ppcor_output)
# rescale the matrix
ppcor_rescaled <- network_rescale(ppcor_parsed)
# make the binary matrix
ppcor_binary <- network_make_binary(ppcor_rescaled, 70)
# to see the differences you may use:
plot_network_dendrogram(ppcor_rescaled)
plot_network_dendrogram(ppcor_binary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.