{
  "_id": "6a508ebbc30f0868bbf2088d",
  "Package": "mectx",
  "Type": "Package",
  "Title": "MEchanistic Clustering - Treatment eXposure Framework",
  "Version": "1.1.1",
  "Authors@R": "c(person(given = \"Dipankor\",\nfamily = \"Dhrubo\",\nemail = \"dhrubo.2@osu.edu\",\nrole = c(\"aut\", \"cre\")),\nperson(given = \"Daniel\",\nfamily = \"Spakowicz\",\nrole = c(\"aut\"),\nemail = \"daniel.spakowicz@osumc.edu\",\ncomment = c(ORCID = \"0000-0003-2314-6435\")))",
  "Description": "Implements the MEC-TX (MEchanistic Clustering - Treatment\neXposure) framework for encoding, clustering, and survival\nanalysis of real-world oncology treatment timelines. Provides\nfunctions for normalising medication records, computing\ntreatment intervals, performing k-means clustering in PCA\nspace, assigning line-of-therapy labels, and comparing survival\noutcomes across treatment groups. Designed for use with\nregistry-based cohorts such as the ORIEN AVATAR dataset.\nMethods follow the digital-twin framework described in Dhrubo\nand Spakowicz (2026) <https://github.com/spakowiczlab/mec-tx>.\ntreatment timelines using the MEC-TX digital-twin framework.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Date": "2026-04-27",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-10 06:14:21 UTC",
    "User": "root"
  },
  "Author": "Dipankor Dhrubo [aut, cre], Daniel Spakowicz [aut] (ORCID:\n<https://orcid.org/0000-0003-2314-6435>)",
  "Maintainer": "Dipankor Dhrubo <dhrubo.2@osu.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-05-11 20:09:26 UTC",
  "RemoteUrl": "https://github.com/cran/mectx",
  "RemoteRef": "HEAD",
  "RemoteSha": "71351649ec6489fabb1bb7bf4afe8b868e6ea2f3",
  "_user": "cran",
  "_type": "src",
  "_file": "mectx_1.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/e6eaefbc2001b85262ffce950115ce912b9b06ae37e94bd51b1e042f3ff5151f",
  "_filesize": 328246,
  "_sha256": "e6eaefbc2001b85262ffce950115ce912b9b06ae37e94bd51b1e042f3ff5151f",
  "_expires": "2026-10-18T06:18:33.000Z",
  "_created": "2026-07-10T06:14:21.000Z",
  "_published": "2026-07-10T06:18:35.566Z",
  "_jobs": [
    {
      "job": 86299366420,
      "time": 201,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8219760974"
    },
    {
      "job": 86299366428,
      "time": 196,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8219759754"
    },
    {
      "job": 86298758704,
      "time": 275,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8219705965"
    },
    {
      "job": 86299366442,
      "time": 133,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8219743182"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/29073114858",
  "_status": "success",
  "_upstream": "https://github.com/cran/mectx",
  "_commit": {
    "id": "71351649ec6489fabb1bb7bf4afe8b868e6ea2f3",
    "author": "Dipankor Dhrubo <dhrubo.2@osu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.1.1\n",
    "time": 1778530166
  },
  "_maintainer": {
    "name": "Dipankor Dhrubo",
    "email": "dhrubo.2@osu.edu"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.4.0",
      "role": "Depends"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "broom",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "ggnewscale",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "patchwork",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "umap",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-20",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.1.1",
      "date": "2026-05-11"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 617,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 422,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mectx"
  },
  "_searchresults": 3,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mectx.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.1.1",
      "date": "2026-05-11"
    }
  ],
  "_exports": [
    "cox_forest_plot_from_df",
    "dominant_exclusive",
    "get_focus_cohort",
    "km_panel_from_df",
    "plot_timeline_for_k",
    "prep_segs",
    "standardise_status",
    "timeline_panel",
    "treatment_shares",
    "tx_cluster_surv",
    "tx_compare_groups",
    "tx_duration",
    "tx_focus_dt",
    "tx_intervals",
    "tx_lines",
    "tx_normalize",
    "tx_pooled_analysis"
  ],
  "_help": [
    {
      "page": "cox_forest_plot_from_df",
      "title": "Cox Proportional Hazards Forest Plot",
      "topics": [
        "cox_forest_plot_from_df"
      ]
    },
    {
      "page": "dominant_exclusive",
      "title": "Assign Mutually Exclusive Dominant Treatment Regimen Per Patient",
      "topics": [
        "dominant_exclusive"
      ]
    },
    {
      "page": "get_focus_cohort",
      "title": "Extract Focus Cohort Sample IDs",
      "topics": [
        "get_focus_cohort"
      ]
    },
    {
      "page": "km_panel_from_df",
      "title": "Kaplan-Meier Survival Panel with Optional Risk Table",
      "topics": [
        "km_panel_from_df"
      ]
    },
    {
      "page": "plot_timeline_for_k",
      "title": "Treatment Timeline Facet Plot by Cluster Assignment",
      "topics": [
        "plot_timeline_for_k"
      ]
    },
    {
      "page": "prep_segs",
      "title": "Recode and clip treatment segments to canonical types Validates a raw segments data frame, recodes free-text treatment type labels to the eight canonical MEC-TX types via regex, and clips segment start/end times to '[0, horizon_years]'. Zero-duration segments (after clipping) and rows with 'NA' in 'sample', 't0', or 't1' are dropped. Called upstream by 'plot_timeline_for_k()' and 'timeline_panel()' - not intended for direct use.",
      "topics": [
        "prep_segs"
      ]
    },
    {
      "page": "standardise_status",
      "title": "Standardise Survival Status Column to 0/1 Integer",
      "topics": [
        "standardise_status"
      ]
    },
    {
      "page": "timeline_panel",
      "title": "Treatment Timeline Panel for Selected Patients",
      "topics": [
        "timeline_panel"
      ]
    },
    {
      "page": "treatment_shares",
      "title": "Compute per-patient treatment type durations and shares Takes a clipped and recoded segments data frame (output of 'prep_segs') and computes per-patient treatment duration and share for each of the eight canonical treatment types. Returns a wide-format tibble with one row per patient. Called upstream by 'timeline_panel' and 'plot_timeline_for_k' - not intended for direct use.",
      "topics": [
        "treatment_shares"
      ]
    },
    {
      "page": "tx_cluster_surv",
      "title": "Cluster Treatment Timelines and Attach Survival Data",
      "topics": [
        "tx_cluster_surv"
      ]
    },
    {
      "page": "tx_compare_groups",
      "title": "Flexible Survival Comparison by Grouping Variable or Custom Groups",
      "topics": [
        "tx_compare_groups"
      ]
    },
    {
      "page": "tx_duration",
      "title": "Treatment Duration Analysis by Grouping Variable",
      "topics": [
        "tx_duration"
      ]
    },
    {
      "page": "tx_focus_dt",
      "title": "Digital Twin Focus Analysis for a Specific Treatment Type",
      "topics": [
        "tx_focus_dt"
      ]
    },
    {
      "page": "tx_intervals",
      "title": "Convert Normalised Treatment Timeline to Treatment Intervals",
      "topics": [
        "tx_intervals"
      ]
    },
    {
      "page": "tx_lines",
      "title": "Detect Lines of Therapy from Treatment Timelines",
      "topics": [
        "tx_lines"
      ]
    },
    {
      "page": "tx_normalize",
      "title": "Normalise Raw Medication Data into a Grid-Based Treatment Timeline",
      "topics": [
        "tx_normalize"
      ]
    },
    {
      "page": "tx_pooled_analysis",
      "title": "Pooled Treatment Cohort Analysis",
      "topics": [
        "tx_pooled_analysis"
      ]
    }
  ],
  "_readme": "https://github.com/cran/mectx/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "backports",
    "broom",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "forcats",
    "generics",
    "ggnewscale",
    "ggplot2",
    "glue",
    "gtable",
    "here",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "openssl",
    "patchwork",
    "pillar",
    "pkgconfig",
    "png",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppTOML",
    "reticulate",
    "rlang",
    "rprojroot",
    "RSpectra",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "survival",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "umap",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "mectx",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-07-10T06:17:07.000Z",
      "distro": "resolute",
      "commit": "71351649ec6489fabb1bb7bf4afe8b868e6ea2f3",
      "fileid": "https://r2.ropensci.org/e9a8902897125b1c5698042dea74be79f5aa5d354f44b5e90f53a3d381c144a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29073114858"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-07-10T06:17:01.000Z",
      "distro": "resolute",
      "commit": "71351649ec6489fabb1bb7bf4afe8b868e6ea2f3",
      "fileid": "https://r2.ropensci.org/a0e0bf0c3e991cad74fdb0dab370141884974eedb2463e412314af08ee67e86c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29073114858"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-07-10T06:17:01.000Z",
      "commit": "71351649ec6489fabb1bb7bf4afe8b868e6ea2f3",
      "fileid": "https://r2.ropensci.org/86aa43b3af99405130cef657ccdcb23e5d2e6ab18f4e40de856f56d4e88ccf03",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29073114858"
    }
  ]
}