Skip to content

PC Algorithm with the Principle of Mendelian Randomization

0packages depend
6.9Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 4.3 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 3.2.0
READMEYes · 426 wordsVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
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

6.9K
CRAN downloads in the past year
Rank #6,257 · ~19/day · ~579/mo
Daily download trend is not available in this view yet.
54530 days
1.3K90 days
6.9K1 year
Compare downloads with other packages →
Also on98 r2u56 c2d4u

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.0
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer · added in 3.2.0
Contributor · added in 2.0.0

Maintainer since 3.1.0 (2022), previously Md Bahadur Badsha (1.0.0 to 3.0.0)

Listed in earlier versions (4)
Show 4 peopleHide 4 people
no longer listed · 1.0.0 to 3.1.0
no longer listed · 2.3.1
Badsha
no longer listed · 3.2.0
Martin
no longer listed · 3.2.0
Releases (11)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 3.2.0Latest
    record
    2025-09-14 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • unarchivedReturned to CRAN
    2022-04-11
  • 3.1.0
    record
    2022-04-11 · diff ↗
  • archivedRemoved from CRAN
    2022-04-04
    'coercion to logical' errors were not corrected in time See https://www.stats.ox.ac.uk/pub/bdr/LENGTH1/
  • 3.0.0
    record
    2021-12-16 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 2.3.1
    record
    2021-05-02 · diff ↗
  • 2.3.0
    record
    2021-03-14 · diff ↗
  • 2.2.2
    record
    2021-01-24 · diff ↗
  • 2.2.1
    record
    2020-10-06 · diff ↗ ·
    added 2 exports
    AdjustMatrix, IdentifyAssociatedPCs
  • R
    R 4.0.0 released · 2020-04-24
Show 6 earlier eventsHide 6 earlier events
  • 2.2.0
    record
    2019-11-16 · diff ↗
  • 2.1.0
    record
    2019-05-09 · diff ↗ ·
    removed 10 exports
    Case_NP, Case_1P, Case_2P, Case_3P, Cut_Modules, DendroModuleGraph, InferenceAccuracyExample, Recall_Precision, SimulatedData, SimulationDemo
    added 11 exports
    SimulateDataNP, SimulateData1P, SimulateData2P, SimulateData3P, CutModules, PlotDendrogram, PlotGraphWithModules, CompareMethodsVStructure, RecallPrecision, SimulateData, CompareMethodsNodeOrdering
  • R
    R 3.6.0 released · 2019-04-26
  • 2.0.0
    record
    2018-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:aSHD
    added 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.0
    record
    2018-08-14
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("MRPC")
Fu, A., Badsha, M. B., & Martin, E. A. (2025). MRPC: PC Algorithm with the Principle of Mendelian Randomization (Version 3.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MRPC version 3.2.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy