{"id":20690229,"url":"https://github.com/merck/forestly","last_synced_at":"2025-04-22T16:55:25.718Z","repository":{"id":181239509,"uuid":"666431615","full_name":"Merck/forestly","owner":"Merck","description":"Interactive forest plot for adverse events analysis","archived":false,"fork":false,"pushed_at":"2024-08-13T05:38:57.000Z","size":29080,"stargazers_count":12,"open_issues_count":5,"forks_count":3,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-14T06:21:24.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://merck.github.io/forestly/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Merck.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-14T13:55:19.000Z","updated_at":"2024-09-07T00:52:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5a6d270-062a-410b-9acd-ae71b477bc05","html_url":"https://github.com/Merck/forestly","commit_stats":null,"previous_names":["merck/forestly"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fforestly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fforestly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fforestly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fforestly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Merck","download_url":"https://codeload.github.com/Merck/forestly/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224979005,"owners_count":17401803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T23:12:19.596Z","updated_at":"2024-11-16T23:12:20.226Z","avatar_url":"https://github.com/Merck.png","language":"R","readme":"# forestly \u003cimg src=\"man/figures/logo.png\" align=\"right\" width=\"120\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/Merck/forestly/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Merck/forestly/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/Merck/forestly/branch/main/graph/badge.svg)](https://app.codecov.io/gh/Merck/forestly?branch=main)\n[![CRAN status](https://www.r-pkg.org/badges/version/forestly)](https://cran.r-project.org/package=forestly)\n[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/forestly)](https://cran.r-project.org/package=forestly)\n\u003c!-- badges: end --\u003e\n\n## Installation\n\nThe easiest way to get forestly is to install from CRAN:\n\n```r\ninstall.packages(\"forestly\")\n```\n\nAlternatively, to use a new feature or get a bug fix,\nyou can install the development version of forestly from GitHub:\n\n```r\n# install.packages(\"remotes\")\nremotes::install_github(\"Merck/forestly\")\n```\n\n## Overview\n\nThe forestly package creates interactive forest plots for clinical trial analysis \u0026 reporting.\n\n- Safety analysis\n  - Specific adverse events analysis\n- Efficacy analysis (future work)\n  - Subgroup analysis\n\n\u003cvideo src=\"https://github.com/Merck/forestly/assets/129398183/2a645ac6-86f3-42c8-bcba-1970da916fae\" data-canonical-src=\"https://github.com/Merck/forestly/assets/129398183/2a645ac6-86f3-42c8-bcba-1970da916fae\" controls=\"controls\" muted=\"muted\" class=\"d-block rounded-bottom-2 width-fit\" style=\"max-height:640px;max-width:60%;\"\u003e\n\n\u003c/video\u003e\n\nWe assume ADaM datasets are ready for analysis and\nleverage [metalite](https://merck.github.io/metalite/) data structure to define\ninputs and outputs.\n\n## Workflow\n\nThe general workflow is:\n\n1. `meta_forestly()` constructs input metadata for treatment analysis from ADaM datasets.\n1. `prepare_ae_forestly()` prepares datasets for interactive forest plot.\n1. `format_ae_forestly()` formats output layout.\n1. `ae_forestly()` generates an interactive forest plot.\n\nHere is a quick example\n\n```r\nlibrary(\"forestly\")\n\nmeta_forestly(\n  dataset_adsl = forestly_adsl,\n  dataset_adae = forestly_adae,\n  parameter_term = \"any;rel;ser\",\n  population_subset = SAFFL == \"Y\",\n  observation_subset = SAFFL == \"Y\"\n) |\u003e\n  prepare_ae_forestly(parameter = \"any;rel;ser\") |\u003e\n  format_ae_forestly() |\u003e\n  ae_forestly()\n```\n\n## Interactive features\n\nThe interactive features for safety analysis include:\n\n- Select different AE criteria.\n- Filter by incidence of AE in one or more groups.\n- Reveal information by hovering the mouse over a data point.\n- Search bars to find subjects with selected adverse events (AEs).\n- Sort value by clicking the column header.\n- Drill-down listing by clicking $\\blacktriangleright$.\n\n## References\n\n- Paper: [2023 PHUSE US Connect](https://phuse.s3.eu-central-1.amazonaws.com/Archive/2023/Connect/US/Florida/PAP_DV07.pdf)\n- Talk: [2021 R/Pharma Conference](https://rinpharma.com/publication/rinpharma_206/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerck%2Fforestly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmerck%2Fforestly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerck%2Fforestly/lists"}