R version 4.4.0 alpha (2024-04-07 r86351 ucrt) Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(WayFindR) > xmlfile <- system.file("pathways/WP3850.gpml", package = "WayFindR") > groups <- collectGroups(xmlfile) > class(groups) [1] "list" > groups$nodes GraphId label Type b5c6b b5c6b mTORC2 complex Complex b3356 b3356 mTORC1 complex Complex d51fd d51fd Group1 Complex dae36 dae36 Group2 Group > groups$edges Source Target MIM ec1 a4cc9 d51fd contained ec2 b3463 d51fd contained ec3 bb118 b3356 contained ec4 bd3fb dae36 contained ec5 ca5fb b3356 contained ec6 efb74 dae36 contained ec7 f8fb6 b3356 contained ec8 fad48 b3356 contained ec9 c2a5c b3356 contained ec10 f5051 b5c6b contained ec11 e1ccf b5c6b contained ec12 c6e5f b5c6b contained ec13 a3b41 b5c6b contained > > proc.time() user system elapsed 0.37 0.17 0.48