Learn R Programming

⚠️There's a newer version (1.2.3) of this package.Take me there.

SEMgraph

Network Analysis and Causal Learning with Structural Equation Modeling

SEMgraph Estimate networks and causal relations in complex systems through Structural Equation Modeling (SEM). SEMgraph comes with the following functionalities:

  • Interchangeable model representation as either an igraph object

or the corresponding SEM in lavaan syntax. Model management functions include graph-to-SEM conversion, automated covariance matrix regularization, graph conversion to DAG, and tree (arborescence) from correlation matrices.

  • Heuristic filtering, node and edge weighting, resampling and

parallelization settings for fast fitting in case of very large models.

  • Automated data-driven model building and improvement, through causal

structure learning and bow-free interaction search and latent variable confounding adjustment.

  • Perturbed paths finding, community searching and sample scoring,

together with graph plotting utilities, tracing model architecture modifications and perturbation (i.e., activation or repression) routes.

Installation

The latest stable version can be installed from CRAN:

install.packages("SEMgraph")

The latest development version can be installed from GitHub:

# install.packages("devtools")
devtools::install_github("fernandoPalluzzi/SEMgraph")

Do not forget to install the SEMdata package too! It contains useful high-throughput sequencing data, reference networks, and pathways for SEMgraph training:

devtools::install_github("fernandoPalluzzi/SEMdata")

Copy Link

Version

Install

install.packages('SEMgraph')

Monthly Downloads

322

Version

1.2.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Barbara Tarantino

Last Published

July 22nd, 2024

Functions in SEMgraph (1.2.2)

dagitty2graph

Graph conversion from dagitty to igraph
gplot

Graph plotting with renderGraph
clusterScore

Module scoring
extractClusters

Cluster extraction utility
ancestry

Node ancestry utilities
factor.analysis

Factor analysis for high dimensional data
graph2dag

Convert directed graphs to directed acyclic graphs (DAGs)
cplot

Subgraph mapping
colorGraph

Vertex and edge graph coloring on the base of fitting
clusterGraph

Topological graph clustering
kegg

KEGG interactome
lavaan2graph

lavaan model to graph
kegg.pathways

KEGG pathways
mergeNodes

Graph nodes merging by a membership attribute
modelSearch

Optimal model search strategies
orientEdges

Assign edge orientation of an undirected graph
weightGraph

Graph weighting methods
localCI.test

Conditional Independence (CI) local tests of an acyclic graph
summary.RICF

RICF model summary
transformData

Transform data methods
sachs

Sachs multiparameter flow cytometry data and consensus model
pairwiseMatrix

Pairwise plotting of multivariate data
summary.GGM

GGM model summary
pathFinder

Perturbed path search utility
graph2lavaan

Graph to lavaan model
graph2dagitty

Graph conversion from igraph to dagitty
parameterEstimates

Parameter Estimates of a fitted SEM
properties

Graph properties summary and graph decomposition
resizeGraph

Interactome-assisted graph re-seizing
SEMgsa

SEM-based gene set analysis
Shipley.test

Missing edge testing implied by a DAG with Shipley's basis-set
SEMdag

Estimate a DAG from an input (or empty) graph
SEMpath

Search for directed or shortest paths between pairs of source-sink nodes
SEMdci

SEM-based differential network analysis
alsData

Amyotrophic Lateral Sclerosis (ALS) dataset
SEMbap

Bow-free covariance search and data de-correlation
SEMace

Compute the Average Causal Effect (ACE) for a given source-sink pair
SEMrun

Fit a graph as a Structural Equation Model (SEM)
SEMtree

Tree-based structure learning methods