Package: kgraph 1.2.0

kgraph: Knowledge Graphs Constructions and Visualizations

Knowledge graphs enable to efficiently visualize and gain insights into large-scale data analysis results, as p-values from multiple studies or embedding data matrices. The usual workflow is a user providing a data frame of association studies results and specifying target nodes, e.g. phenotypes, to visualize. The knowledge graph then shows all the features which are significantly associated with the phenotype, with the edges being proportional to the association scores. As the user adds several target nodes and grouping information about the nodes such as biological pathways, the construction of such graphs soon becomes complex. The 'kgraph' package aims to enable users to easily build such knowledge graphs, and provides two main features: first, to enable building a knowledge graph based on a data frame of concepts relationships, be it p-values or cosine similarities; second, to enable determining an appropriate cut-off on cosine similarities from a complete embedding matrix, to enable the building of a knowledge graph directly from an embedding matrix. The 'kgraph' package provides several display, layout and cut-off options, and has already proven useful to researchers to enable them to visualize large sets of p-value associations with various phenotypes, and to quickly be able to visualize embedding results. Two example datasets are provided to demonstrate these behaviors, and several live 'shiny' applications are hosted by the CELEHS laboratory and Parse Health, as the KESER Mental Health application <https://keser-mental-health.parse-health.org/> based on Hong C. (2021) <doi:10.1038/s41746-021-00519-z>.

Authors:Thomas Charlon [aut, cre], Hongyi Yuan [ctb], CELEHS [aut], PARSE Health [aut]

kgraph_1.2.0.tar.gz
kgraph_1.2.0.zip(r-4.7)kgraph_1.2.0.zip(r-4.6)kgraph_1.2.0.zip(r-4.5)
kgraph_1.2.0.tgz(r-4.6-any)kgraph_1.2.0.tgz(r-4.5-any)
kgraph_1.2.0.tar.gz(r-4.7-any)kgraph_1.2.0.tar.gz(r-4.6-any)
kgraph_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
kgraph/json (API)

# Install 'kgraph' in R:
install.packages('kgraph', repos = c('https://thomaschln.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://gitlab.com/thomaschln/kgraph

Datasets:

On CRAN:

Conda:

3.70 score 1 scripts 236 downloads 15 exports 67 dependencies

Last updated from:90cf6f20bb. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK190
source / vignettesOK252
linux-release-x86_64OK173
macos-release-arm64OK189
macos-oldrel-arm64OK178
windows-develOK317
windows-releaseOK466
windows-oldrelOK131
wasm-releaseOK132

Exports:%<>%%>%%$%build_kgraphbuild_kgraph_from_fitcov_simifit_embeds_kgfit_embeds_to_pairsgen_df_notpairsget_color_mapget_cutoff_thresholdget_legend_panelget_sgraphproject_pairssparse_encode

Dependencies:base64encbslibcachemclicommonmarkcowplotcpp11digestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetshttpuvigraphisobandjquerylibjsonliteknitrlabelinglaterlatticelifecyclemagrittrMatrixmemoisemimeopticskxiotelpillarpkgconfigplyrpROCpromisesR6rappdirsRColorBrewerRcppreshape2rlangrmarkdownS7sassscalessgraphshinysourcetoolsstringistringrtibbletidyselecttinytexutf8vctrsviridisLitewithrxfunxtableyaml

Knowledge Graphs

Rendered fromkgraph.Rmdusingknitr::rmarkdownon May 05 2026.

Last update: 2025-03-22
Started: 2024-06-17