diffdriver
0.1.7Identify Differential Selection
Overview
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" doi:10.64898/2026.04.06.716771.
Install
Health
- OK2026-06-277 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Repository
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 1.0 median / 11 max
- Documented parameters
- 90%
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
47 10 exported
Complexity
2.3 avg / 11 max
Call network
47 nodes / 53 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
1 release. R releases are shown for context.
- 0.1.7Latest2026-06-26 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-26
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet