Finds the shortest anatomical pathway between two entities (muscles, bones, nerves, etc.) in the knowledge graph. Useful for tracing innervation chains, biomechanical linkages, and anatomical relationships.
Value
A list with:
- path
Character vector of entities along the path
- predicates
Character vector of relationship types between entities
- depth
Integer, path length
- description
Human-readable path description
- found
Logical, whether a path was found
Clinical Validity
Pathways reflect relationships encoded in the knowledge graph. The shortest path in the KG may not correspond to the most clinically relevant connection. Always verify pathway interpretations against anatomical references.
Examples
if (FALSE) { # \dontrun{
path <- mskPathwayQuery("Biceps Brachii", "C5")
cat(path$description, "\n")
} # }