matrix2adj {pGRN} | R Documentation |
Convert distance matrix to adjacency dataframe
Description
Convert distance matrix to adjacency dataframe for network construction.
Usage
matrix2adj(data, quantile_cutoff = 5)
Arguments
data |
distance matrix |
quantile_cutoff |
an integer value (1-99) for quantile cutoff |
Value
adjacency dataframe (with columns "from, to, distance,direction, similarity")
Examples
example_data <- pGRNDB
expression_matrix <- example_data[["expression"]]
pseudotime_list <- example_data[["ptime"]]$PseudoTime
dtw_dist_matrix <- get_dtw_dist_mat(expression_matrix,
pseudotime_list,
cores=1)
adj_df <- matrix2adj(dtw_dist_matrix)
[Package pGRN version 0.3.5 Index]