{
  "_id": "6a1088e4acfb0bcc41cb250e",
  "Package": "kgraph",
  "Title": "Knowledge Graphs Constructions and Visualizations",
  "Version": "1.2.0",
  "Authors@R": "c(person(\"Thomas\", \"Charlon\", role = c(\"aut\", \"cre\"),\nemail = \"charlon@protonmail.com\",\ncomment = c(ORCID = \"0000-0001-7497-0470\")),\nperson(\"Hongyi\", \"Yuan\", role = \"ctb\", comment = c(ORCID = \"0000-0003-2597-1973\")),\nperson(\"CELEHS\", role = \"aut\", comment = \"<https://celehs.hms.harvard.edu>\"),\nperson(\"PARSE Health\", role = \"aut\", comment = \"<https://parse-health.org>\"))",
  "Description": "Knowledge graphs enable to efficiently visualize and gain\ninsights into large-scale data analysis results, as p-values\nfrom multiple studies or embedding data matrices. The usual\nworkflow is a user providing a data frame of association\nstudies results and specifying target nodes, e.g. phenotypes,\nto visualize. The knowledge graph then shows all the features\nwhich are significantly associated with the phenotype, with the\nedges being proportional to the association scores. As the user\nadds several target nodes and grouping information about the\nnodes such as biological pathways, the construction of such\ngraphs soon becomes complex. The 'kgraph' package aims to\nenable users to easily build such knowledge graphs, and\nprovides two main features: first, to enable building a\nknowledge graph based on a data frame of concepts\nrelationships, be it p-values or cosine similarities; second,\nto enable determining an appropriate cut-off on cosine\nsimilarities from a complete embedding matrix, to enable the\nbuilding of a knowledge graph directly from an embedding\nmatrix. The 'kgraph' package provides several display, layout\nand cut-off options, and has already proven useful to\nresearchers to enable them to visualize large sets of p-value\nassociations with various phenotypes, and to quickly be able to\nvisualize embedding results. Two example datasets are provided\nto demonstrate these behaviors, and several live 'shiny'\napplications are hosted by the CELEHS laboratory and Parse\nHealth, as the KESER Mental Health application\n<https://keser-mental-health.parse-health.org/> based on Hong\nC. (2021) <doi:10.1038/s41746-021-00519-z>.",
  "VignetteBuilder": "knitr",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "URL": "https://gitlab.com/thomaschln/kgraph",
  "BugReports": "https://gitlab.com/thomaschln/kgraph/-/issues",
  "Config/pak/sysreqs": "cmake libglpk-dev make libicu-dev libuv1-dev\nlibxml2-dev zlib1g-dev",
  "Repository": "https://thomaschln.r-universe.dev",
  "Date/Publication": "2025-04-04 19:00:52 UTC",
  "RemoteUrl": "https://gitlab.com/thomaschln/kgraph",
  "RemoteRef": "HEAD",
  "RemoteSha": "90cf6f20bb782928e099db774ce96b283b50d6b1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-05 07:23:02 UTC",
    "User": "root"
  },
  "Author": "Thomas Charlon [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7497-0470>),\nHongyi Yuan [ctb] (ORCID: <https://orcid.org/0000-0003-2597-1973>),\nCELEHS [aut] (<https://celehs.hms.harvard.edu>),\nPARSE Health [aut] (<https://parse-health.org>)",
  "Maintainer": "Thomas Charlon <charlon@protonmail.com>",
  "MD5sum": "591d6aa9234b940a4620c67a4c7342f3",
  "_user": "thomaschln",
  "_type": "src",
  "_file": "kgraph_1.2.0.tar.gz",
  "_fileid": "f19f025a961e24734ec7ace5569c0533e332053a23afb520cee0918fd736e6ff",
  "_filesize": 1246963,
  "_sha256": "f19f025a961e24734ec7ace5569c0533e332053a23afb520cee0918fd736e6ff",
  "_created": "2026-05-05T07:23:02.000Z",
  "_published": "2026-05-22T16:48:36.586Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77423877691,
      "time": 190,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6800819751"
    },
    {
      "job": 77423878022,
      "time": 173,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6800817376"
    },
    {
      "job": 77423877866,
      "time": 178,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6800811604"
    },
    {
      "job": 77423877619,
      "time": 189,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6800811701"
    },
    {
      "job": 77423877276,
      "time": 252,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6800773575"
    },
    {
      "job": 77423877107,
      "time": 132,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7165822227"
    },
    {
      "job": 77423877654,
      "time": 317,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6800851860"
    },
    {
      "job": 77423877704,
      "time": 131,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6800806694"
    },
    {
      "job": 77423877790,
      "time": 466,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6800888233"
    }
  ],
  "_buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://gitlab.com/thomaschln/kgraph",
  "_commit": {
    "id": "90cf6f20bb782928e099db774ce96b283b50d6b1",
    "author": "Thomas Charlon <charlon@protonmail.com>",
    "committer": "Thomas Charlon <charlon@protonmail.com>",
    "message": "up\n",
    "time": 1743793252
  },
  "_maintainer": {
    "name": "Thomas Charlon",
    "email": "charlon@protonmail.com",
    "login": "thomaschln",
    "linkedin": "in/thomas-charlon-meng-phd-aba0a3275",
    "orcid": "0000-0001-7497-0470",
    "uuid": 2394508
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "htmltools",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "opticskxi",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "sgraph",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "role": "Imports"
    },
    {
      "package": "bslib",
      "role": "Suggests"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "DT",
      "role": "Suggests"
    },
    {
      "package": "grid",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "nlpembeds",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "gitlab-thomaschln",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_userbio": {
    "uuid": 2394508,
    "type": "user",
    "name": "Thomas Charlon",
    "description": "Harvard Medical School Researcher\r\nBiomedical Informatics @hms-dbmi\r\nCELEHS laboratory @CELEHS"
  },
  "_downloads": {
    "count": 236,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/kgraph"
  },
  "_devurl": "https://gitlab.com/thomaschln/kgraph",
  "_searchresults": 1,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/kgraph.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://gitlab.com/thomaschln/kgraph",
  "_realowner": "thomaschln",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-09-20"
    },
    {
      "version": "1.0.1",
      "date": "2025-02-01"
    },
    {
      "version": "1.2.0",
      "date": "2025-03-10"
    }
  ],
  "_exports": [
    "%<>%",
    "%>%",
    "%$%",
    "build_kgraph",
    "build_kgraph_from_fit",
    "cov_simi",
    "fit_embeds_kg",
    "fit_embeds_to_pairs",
    "gen_df_notpairs",
    "get_color_map",
    "get_cutoff_threshold",
    "get_legend_panel",
    "get_sgraph",
    "project_pairs",
    "sparse_encode"
  ],
  "_datasets": [
    {
      "name": "df_cuis_pairs",
      "title": "A dataset containing CUIs pairs",
      "object": "df_cuis_pairs",
      "file": "df_cuis_pairs.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "umls_id.x",
        "x_name",
        "umls_id.y",
        "y_name"
      ],
      "rows": 2358,
      "table": true,
      "tojson": true
    },
    {
      "name": "df_embeds_dict",
      "title": "A dictionary for the m_embeds object",
      "object": "df_embeds_dict",
      "file": "df_embeds_dict.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "desc",
        "color",
        "group"
      ],
      "rows": 1118,
      "table": true,
      "tojson": true
    },
    {
      "name": "df_phecode_pairs",
      "title": "A dataset containing Phecode pairs",
      "object": "df_phecode_pairs",
      "file": "df_phecode_pairs.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "PheCode.x",
        "PheCode_desc.x",
        "PheCode.y",
        "PheCode_desc.y"
      ],
      "rows": 3288,
      "table": true,
      "tojson": true
    },
    {
      "name": "df_pval",
      "title": "A dataset containing GWAS p-values",
      "object": "df_pval",
      "file": "df_pval.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "concept1",
        "concept2",
        "weight"
      ],
      "rows": 364,
      "table": true,
      "tojson": true
    },
    {
      "name": "df_pval_dict",
      "title": "A dictionary for the df_pval object",
      "object": "df_pval_dict",
      "file": "df_pval_dict.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "desc",
        "group",
        "color"
      ],
      "rows": 333,
      "table": true,
      "tojson": true
    },
    {
      "name": "m_embeds",
      "title": "A dataset containing medical word embeddings",
      "object": "m_embeds",
      "file": "m_embeds.rda",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 1122,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "compound",
      "title": "Assignment pipe",
      "topics": [
        "%<>%"
      ]
    },
    {
      "page": "pipe",
      "title": "Pipe",
      "topics": [
        "%>%"
      ]
    },
    {
      "page": "exposition",
      "title": "Exposition pipe",
      "topics": [
        "%$%"
      ]
    },
    {
      "page": "build_kgraph",
      "title": "Build a knowledge graph",
      "topics": [
        "build_kgraph"
      ]
    },
    {
      "page": "build_kgraph_from_fit",
      "title": "Build a knowledge graph from a fit object",
      "topics": [
        "build_kgraph_from_fit"
      ]
    },
    {
      "page": "cov_simi",
      "title": "Covariance similarity",
      "topics": [
        "cov_simi"
      ]
    },
    {
      "page": "df_cuis_pairs",
      "title": "A dataset containing CUIs pairs",
      "topics": [
        "df_cuis_pairs"
      ]
    },
    {
      "page": "df_embeds_dict",
      "title": "A dictionary for the m_embeds object",
      "topics": [
        "df_embeds_dict"
      ]
    },
    {
      "page": "df_phecode_pairs",
      "title": "A dataset containing Phecode pairs",
      "topics": [
        "df_phecode_pairs"
      ]
    },
    {
      "page": "df_pval",
      "title": "A dataset containing GWAS p-values",
      "topics": [
        "df_pval"
      ]
    },
    {
      "page": "df_pval_dict",
      "title": "A dictionary for the df_pval object",
      "topics": [
        "df_pval_dict"
      ]
    },
    {
      "page": "fit_embeds_kg",
      "title": "Fit embeddings to a kgraph object",
      "topics": [
        "fit_embeds_kg"
      ]
    },
    {
      "page": "fit_embeds_to_pairs",
      "title": "Fit embeds to pairs",
      "topics": [
        "fit_embeds_to_pairs"
      ]
    },
    {
      "page": "gen_df_notpairs",
      "title": "Generate null pairs",
      "topics": [
        "gen_df_notpairs"
      ]
    },
    {
      "page": "get_color_map",
      "title": "Get color mappings",
      "topics": [
        "get_color_map"
      ]
    },
    {
      "page": "get_cutoff_threshold",
      "title": "Get cut-off threshold",
      "topics": [
        "get_cutoff_threshold"
      ]
    },
    {
      "page": "get_legend_panel",
      "title": "Get legend panel",
      "topics": [
        "get_legend_panel"
      ]
    },
    {
      "page": "get_sgraph",
      "title": "Wrapper to build a sgraph object from a kgraph object",
      "topics": [
        "get_sgraph"
      ]
    },
    {
      "page": "init_coords",
      "title": "Initialize coordinates",
      "topics": [
        "init_coords"
      ]
    },
    {
      "page": "m_embeds",
      "title": "A dataset containing medical word embeddings",
      "topics": [
        "m_embeds"
      ]
    },
    {
      "page": "project_pairs",
      "title": "Predict known pairs",
      "topics": [
        "project_pairs"
      ]
    },
    {
      "page": "reshape_multiple_traits",
      "title": "Reshape multiple traits in example data",
      "topics": [
        "reshape_multiple_traits"
      ]
    },
    {
      "page": "reshape_multiple_traits_dict",
      "title": "Reshape multiple traits in example data dictionary",
      "topics": [
        "reshape_multiple_traits_dict"
      ]
    },
    {
      "page": "sparse_encode",
      "title": "sparse_encode",
      "topics": [
        "sparse_encode"
      ]
    }
  ],
  "_readme": "https://gitlab.com/thomaschln/kgraph/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "commonmark",
    "cowplot",
    "cpp11",
    "digest",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "igraph",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "later",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "memoise",
    "mime",
    "opticskxi",
    "otel",
    "pillar",
    "pkgconfig",
    "plyr",
    "pROC",
    "promises",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "rmarkdown",
    "S7",
    "sass",
    "scales",
    "sgraph",
    "shiny",
    "sourcetools",
    "stringi",
    "stringr",
    "tibble",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xtable",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "kgraph.Rmd",
      "filename": "kgraph.html",
      "title": "Knowledge Graphs",
      "author": "Thomas Charlon",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Knowledge graphs",
        "Background",
        "Features overview",
        "Building graphs using specificied relationships",
        "Minimal call",
        "Data preparation",
        "Building the igraph object",
        "Visualization with Sigma.js",
        "Providing a dictionary",
        "Multiple nodes",
        "Groupings",
        "Building a fit object from a data matrix",
        "Overview",
        "Pair-wise similarities",
        "Similarity threshold",
        "Example",
        "Building the fit object",
        "Producing the knowledge graph",
        "Measuring performance using known pairs",
        "References"
      ],
      "created": "2024-06-17 20:24:32",
      "modified": "2025-03-22 19:59:13",
      "commits": 12
    }
  ],
  "_score": 3.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "kgraph",
  "_universes": [
    "thomaschln",
    "gitlab-thomaschln"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-05-05T07:25:30.000Z",
      "distro": "noble",
      "commit": "90cf6f20bb782928e099db774ce96b283b50d6b1",
      "fileid": "6f4cd7311c9b988920a0563040d130a4d9bf6160f251207b192c4b040ad2cca4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-05-05T07:25:27.000Z",
      "distro": "noble",
      "commit": "90cf6f20bb782928e099db774ce96b283b50d6b1",
      "fileid": "4cad5b75714904a008b9982d8c61f18ca51c5d9d9aeed05fd22a9c19e0e853f9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-05-05T07:25:17.000Z",
      "commit": "90cf6f20bb782928e099db774ce96b283b50d6b1",
      "fileid": "21d6fdc774616879dbad9f1e36cb65295859ef87d33972930f319ffe9ea234c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-05-05T07:24:58.000Z",
      "commit": "90cf6f20bb782928e099db774ce96b283b50d6b1",
      "fileid": "632c10cb0f716803c2a4da31011de6b96307b5a38885413169a2d227e59c689f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-05T07:27:32.000Z",
      "commit": "90cf6f20bb782928e099db774ce96b283b50d6b1",
      "fileid": "0f745e5aa899e5e5831eb4e4fd1be7d9db2400051e7d76518daa0a90a705a99b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-05T07:24:22.000Z",
      "commit": "90cf6f20bb782928e099db774ce96b283b50d6b1",
      "fileid": "12e3d24fd86d9362c3dd047fc6ceefe5f54bfd3ff5c93279fc5bc3495fbd9abb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-05T07:30:03.000Z",
      "commit": "90cf6f20bb782928e099db774ce96b283b50d6b1",
      "fileid": "63b403b870ff864d06bfe2ac7cf67b26774925ff75fd92eba3e3c72502a151ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0",
      "date": "2026-05-22T16:48:14.000Z",
      "commit": "90cf6f20bb782928e099db774ce96b283b50d6b1",
      "fileid": "f152f616359b012a9f0cce9d1e84fba0ed58a6d867f27f87988dacba2173234b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/thomaschln/actions/runs/25363141110"
    }
  ]
}