Skip to content

diffdriver

0.1.7

Identify Differential Selection

0packages depend
217downloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Siming ZhaoFirst published 2026-06-261 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 2.4 min · r-devel-linux-x86_64-fedora-gcc
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
Yes
Vignettes
Yes
README
6
Dependencies · direct
Check history
  • OK2026-06-27
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

217
CRAN downloads in the past year
Rank #24,224 · ~1/day · ~18/mo
Daily download trend is not available in this view yet.
21730 days
21790 days
2171 year
Compare downloads with other packages →
Also on1 autocran

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-07-10

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (6)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,480 (66%)Rd 656 (29%)Vignettes 99 (4%)
Code characteristics
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.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Release timeline

1 release. R releases are shown for context.

  • 0.1.7Latest
    2026-06-26 · current release
  • R
    R 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