Package: MRPC 3.2.0

Audrey Fu

MRPC: PC Algorithm with the Principle of Mendelian Randomization

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>.

Authors:Md Bahadur Badsha [aut], Evan A Martin [ctb], Audrey Fu [aut, cre]

MRPC_3.2.0.tar.gz
MRPC_3.2.0.zip(r-4.7)MRPC_3.2.0.zip(r-4.6)MRPC_3.2.0.zip(r-4.5)
MRPC_3.2.0.tgz(r-4.6-any)MRPC_3.2.0.tgz(r-4.5-any)
MRPC_3.2.0.tar.gz(r-4.7-any)MRPC_3.2.0.tar.gz(r-4.6-any)
MRPC_3.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
MRPC/json (API)

# Install 'MRPC' in R:
install.packages('MRPC', repos = c('https://mrcieu.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/audreyqyfu/mrpc/issues

Datasets:

On CRAN:

Conda:

4.10 score 8 stars 26 scripts 679 downloads 2 mentions 25 exports 146 dependencies

Last updated from:c4968a4c67. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK260
source / vignettesOK295
linux-release-x86_64OK292
macos-release-arm64OK117
macos-oldrel-arm64OK186
windows-develOK175
windows-releaseOK164
windows-oldrelOK188
wasm-releaseOK239

Exports:AdjustMatrixaSHDCompareMethodsNodeOrderingCompareMethodsVStructureCutModulesEdgeOrientationemptyIdentifyAssociatedPCsModiSkeletonmpinvMRPCplotPlotDendrogramPlotGraphWithModulesprintRecallPrecisionRobustCorseqDiffSeqFDRSimulateDataSimulateData1PSimulateData2PSimulateData3PSimulateDataNPsummary

Dependencies:abindbackportsbase64encbayesmbdsmatrixBHBiocGenericsBiocManagerbitbit64bnlearnbootbroombslibcachemcheckmateclicliprclueclustercodacodetoolscolorspacecompositionscorpcorcpp11crayondata.tableDEoptimRdigestdoParalleldplyrdynamicTreeCutevaluatefarverfastclusterfastICAfastmapfontawesomeforcatsforeachforeignFormulafsgenericsGGallyggmggplot2ggstatsglmnetglueGPArotationgraphgridExtragtablegtoolshavenhighrHmischmshtmlTablehtmltoolshtmlwidgetsigraphimputeisobanditeratorsjomojquerylibjsonliteknitrlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixmatrixStatsmemoisemicemimeminqamitmlmnormtnetworknlmenloptrnnetnumDerivordinalpanpatchworkpcalgpillarpkgconfigplyrpreprocessCoreprettyunitsprogresspsychpurrrR6rappdirsRBGLrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreadrreformulasRgraphvizrlangrmarkdownrobustbaserpartrstudioapiS7sassscalessfsmiscshapestatnet.commonstringistringrsurvivaltensorAtibbletidyrtidyselecttinytextzdbucminfutf8vcdvctrsviridisLitevroomWGCNAwithrxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Adjust the columns of the input matrix same as in the reference matrixAdjustMatrix
Adjusted structural hamming distance (aSHD)aSHD
Comparison of inference accuracy using the same data but with different node orderings.CompareMethodsNodeOrdering
Comparison of inference accuracy of different methods on data with and without a v-structureCompareMethodsVStructure
Cut a numeric variable into intervalsCutModules
Example data under simple and complex modelsdata_examples
GEUVADIS data with 62 eQTL-gene setsdata_GEUVADIS
Combined genotype and gene expression data from 62 eQTL-gene sets in 373 Europeans from GEUVADISdata_GEUVADIS_combined
Example data with outliersdata_with_outliers
Example data without outliersdata_without_outliers
Perform edge orientation under the MRPC algorithmEdgeOrientation
Check empty matrixempty
Identifyprincipal components (PCs) that are significantly associated with eQTLs and genesIdentifyAssociatedPCs
Infer a graph skeleton (undirected graph)ModiSkeleton
Calculate the inverse matrixmpinv
Infer a causal network using the MRPC algorithmMRPC
Class of MRPC algorithm resultsMRPCclass-class plot,MRPCclass,ANY-method print,MRPCclass-method show,MRPCclass-method summary,MRPCclass-method
Graphs used as truth in simulationMRPCtruth
Plot a dendrogram and display node groups in colored modulesPlotDendrogram
Plot a graph with nodes in modules indicated by colorsPlotGraphWithModules
Calculate recall and precision for two graphsRecallPrecision
Calculate robust correlation matrixRobustCor
Deviation between two graphs represented by two sequencesseqDiff
Sequential FDRSeqFDR
Data for the layered modelsimu_data_layered
Data for Model 0simu_data_M0
Data for Model 1simu_data_M1
Data for Model 2simu_data_M2
Data for Model 3simu_data_M3
Data for Model 4simu_data_M4
Data for the multiple-parent modelsimu_data_multiparent
Data for the star modelsimu_data_starshaped
Simulate data under certain graphsSimulateData
Simulate data for a node with one parentSimulateData1P
Simulate data for a node with two parentsSimulateData2P
Simulate data for a node with three parentsSimulateData3P
Simulate data for a node with no parentSimulateDataNP