Package: diffdriver Type: Package Title: Identify Differential Selection Version: 0.1.8 Authors@R: c( person("Siming", "Zhao", email = "siming.zhao@dartmouth.edu", role = c("aut", "cre"), comment = "Additional email: siming.zhao06@gmail.com"), person("Jie", "Zhou", role = "aut"), person("Qirui", "Zhang", role = "aut") ) Description: Tests for context-dependent selection on cancer driver genes using somatic mutation data. The package implements the DiffDriver statistical framework to assess whether the strength of positive selection on mutations in a driver gene is associated with tumor- or individual-level context variables, such as clinical traits, genomic features, or immune microenvironment subtypes. DiffDriver estimates individual- and position-specific background mutation rates, models selection as a deviation from the background rate using functional annotations, and tests context effects through a latent-variable logistic model. It provides utilities for preparing mutation and annotation data, fitting differential-selection models, running gene-level association tests, summarizing candidate genes, and visualizing mutation patterns. The method is described in Zhou et al. (2026) "Detecting context-dependent selection on cancer driver genes with DiffDriver" . URL: https://szhaolab.github.io/diffdriver/, https://github.com/szhaolab/diffdriver License: MIT + file LICENSE Encoding: UTF-8 Imports: Matrix, stats, data.table, brglm, fastTopics, SQUAREM Suggests: knitr, rmarkdown, logging, testthat (>= 3.0.0) Config/testthat/edition: 3 Depends: R (>= 3.5.0) VignetteBuilder: knitr Config/roxygen2/version: 8.1.1 NeedsCompilation: no Packaged: 2026-11-23 16:54:19 UTC; root Author: Siming Zhao [aut, cre] (Additional email: siming.zhao06@gmail.com), Jie Zhou [aut], Qirui Zhang [aut] Maintainer: Siming Zhao Repository: https://cran.r-universe.dev Date/Publication: 2026-11-23 14:58:41 UTC RemoteUrl: https://github.com/cran/diffdriver RemoteRef: HEAD RemoteSha: 6efefcb737fe88b154fa10b3282556928f45b9f4