PC Algorithm with the Principle of Mendelian Randomization
Overview
A PC Algorithm with the Principle of Mendelian Randomization. This package implements the MRPC (PC with the principle of Mendelian randomization) algorithm to infer causal graphs. It also contains functions to simulate data under a certain topology, to visualize a graph in different ways, and to compare graphs and quantify the differences. See Badsha and Fu (2019) doi:10.3389/fgene.2019.00460, Badsha, Martin and Fu (2021) doi:10.3389/fgene.2021.651812, Kvamme and Badsha, et al. (2025) doi:10.1093/genetics/iyaf064.
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 37
- Examples that run
- 42%11 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran) · 13 never run
- Exported functions with examples
- 86%
- Documented parameters
- 100%
- Return-value docs
- 86%
- Help pages citing references
- 43%
Downloads
Dependencies
Installing MRPC adds 129 packages (71 with compiled code, 124 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB. 5 more not on CRAN are not measured.
Code & Tests
Datasets
People & History
Maintainer since 3.1.0 (2022), previously Md Bahadur Badsha (1.0.0 to 3.0.0)
Show 4 peopleHide 4 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 3.2.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2022-04-11
- 3.1.02022-04-11 · diff ↗
- archivedRemoved from CRAN2022-04-04'coercion to logical' errors were not corrected in time See https://www.stats.ox.ac.uk/pub/bdr/LENGTH1/
- 3.0.02021-12-16 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 2.3.12021-05-02 · diff ↗
- 2.3.02021-03-14 · diff ↗
- 2.2.22021-01-24 · diff ↗
- 2.2.1
- RR 4.0.0 released · 2020-04-24
Show 6 earlier eventsHide 6 earlier events
- 2.2.02019-11-16 · diff ↗
- 2.1.02019-05-09 · diff ↗ ·
removed 10 exports
Case_NP, Case_1P, Case_2P, Case_3P, Cut_Modules, DendroModuleGraph, InferenceAccuracyExample, Recall_Precision, SimulatedData, SimulationDemoadded 11 exports
SimulateDataNP, SimulateData1P, SimulateData2P, SimulateData3P, CutModules, PlotDendrogram, PlotGraphWithModules, CompareMethodsVStructure, RecallPrecision, SimulateData, CompareMethodsNodeOrdering - RR 3.6.0 released · 2019-04-26
- 2.0.02018-10-14 · diff ↗ ·
removed 15 exports
pattern:MRPC, pattern:SimulatedData, pattern:Case_NP, pattern:Case_1P, pattern:Case_2P, pattern:Case_3P, pattern:RobustCor, pattern:mpinv, pattern:SeqFDR, pattern:ModiSkeleton, pattern:empty, pattern:EdgeOrientation, pattern:DendroModuleGraph, pattern:Cut_Modules, pattern:aSHDadded 19 exports
aSHD, Case_NP, Case_1P, Case_2P, Case_3P, Cut_Modules, DendroModuleGraph, EdgeOrientation, empty, InferenceAccuracyExample, ModiSkeleton, mpinv, MRPC, Recall_Precision, RobustCor, SimulatedData, SimulationDemo, SeqFDR, seqDiff - 1.0.02018-08-14
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-08-14
- Total releases
- 11 / 8 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 1.3 MB / 14 files
- Download size
- 1.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MRPC")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.