Interpret EMG Network with Knowledge-Graph Metadata
Source:R/emg-network.R
emgInterpretNetworkKG.RdAdds metadata/KG context to high-weight network edges. This function does not require a specific backend and works with user-provided tables exported from PhysioAnnotationHub/physioKG workflows.
Usage
emgInterpretNetworkKG(
network,
node_metadata = NULL,
kg_edges = NULL,
threshold = NULL,
top_n = 20L,
window = NULL
)Arguments
- network
A square matrix (channels x channels) or 3D array (window x channels x channels).
- node_metadata
Optional data.frame containing at least
channel. Additional columns (e.g.kg_node,muscle_name,muscle_group) are carried into the edge table.- kg_edges
Optional data.frame of KG links. Expected columns are
node_a,node_b, and optionalrelation.- threshold
Optional edge threshold. Default is 75th percentile of upper-triangle weights.
- top_n
Maximum number of edges returned after thresholding.
- window
Optional window index when
networkis a 3D array. If NULL, uses the mean across windows.