MCPcopy Index your code
hub / github.com/cmu-phil/tetrad

github.com/cmu-phil/tetrad @v7.6.10

Chat with this repo
repository ↗ · DeepWiki ↗ · release v7.6.10 ↗ · + Follow
23,874 symbols 96,229 edges 2,045 files 17,889 documented · 75%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Tetrad

Please visit our Tetrad web page for current links, a list of contributors, some history, documentation, descriptions, links for our various projects, Javadocs, and more.

News

We are trying out a new Tetrad ReadTheDocs manual. Let us know if you can think of improvements we can make.

Tetrad Application

See our instructions for Installing the Tetrad Application.

Tetrad in Python

We have a project, py-tetrad, that allows you to incorporate arbitrary Tetrad code into a Python workflow. It's new, and the installation is still nonstandard, but it had a good response. This requires Python 3.5+. and Java JDK 21+.

Tetrad in R

We also have a project, rpy-tetrad, that allows you to incorporate some Tetrad functionality in R. It's also new, and the installation for it is also still nonstandard, but has gotten good feedback. This requires Python 3.5+ and Java JDK 21+.

Please see our description.

Tetrad at the Command Line

In addition, we have a fully developed tool, Causal Command, that lets you run arbitrary Tetrad searches at the command line.

Installallation for Programmers

Here's the git command to clone our project:

git clone https://github.com/cmu-phil/tetrad

Or, you can use GitHub's Code button.

If you have Maven installed, you can type the following to compile:

mvn clean compile

To run the unit tests:

mvn clean test

To generate an executable jar:

mvn clean package

The (launch) jar for the Tetrad Application will appear in the tetrad-gui/target directory. For links to our Python and R projects or our command line tool, please see our Tetrad web page.

Here are some instructions on how to set this project up in IntelliJ IDEA. You can run the Tetrad lifecycle package target and launch the "-launch" jar built in the target directory.

The project contains well-developed code in these packages:

  • tetrad
  • pitt
  • tetradapp

The tetrad-lib package contains the model code; the tetrad-gui package contains the view (GUI) code.

A similar method can be followed for installing in some other IDE.

Problems? Comments?

Please submit an issue in our Issue Tracker, which we assiduously read.

Extension points exported contracts — how you extend this code

Context (Interface)
Looks up the value of a variable. @author Tyler Gibson @version $Id: $Id [236 implementers]
tetrad-lib/src/main/java/edu/cmu/tetrad/calculator/expression/Context.java
CovarianceValidation (Interface)
Dec 12, 2018 2:43:10 PM @author Kevin V. Bui (kvb2@pitt.edu) @version $Id: $Id [8 implementers]
data-reader/src/main/java/edu/pitt/dbmi/data/reader/validation/covariance/CovarianceValidation.java
DisplayComp (Interface)
Created by IntelliJ IDEA. User: jdramsey Date: Apr 4, 2006 Time: 4:39:38 PM To change this template use File | Settings [12 …
tetrad-gui/src/main/java/edu/cmu/tetradapp/workbench/DisplayComp.java
Expression (Interface)
Represents a mathematical expression. Used in the Calculator and the Generalized Sem model. Note that expressions fo [7 …
tetrad-lib/src/main/java/edu/cmu/tetrad/calculator/expression/Expression.java
TabularColumnValidation (Interface)
Dec 12, 2018 2:34:56 PM @author Kevin V. Bui (kvb2@pitt.edu) @version $Id: $Id [7 implementers]
data-reader/src/main/java/edu/pitt/dbmi/data/reader/validation/tabular/TabularColumnValidation.java
GraphSource (Interface)
Indicates a class that is capable of producing a graph on demand. @author josephramsey @version $Id: $Id [46 implementers]
tetrad-gui/src/main/java/edu/cmu/tetradapp/model/GraphSource.java
ModelObserver (Interface)
The ModelObserver interface is implemented by classes that want to observe changes in a model. [17 implementers]
tetrad-lib/src/main/java/edu/cmu/tetrad/search/ModelObserver.java
TabularDataValidation (Interface)
Dec 12, 2018 10:57:09 PM @author Kevin V. Bui (kvb2@pitt.edu) @version $Id: $Id [7 implementers]
data-reader/src/main/java/edu/pitt/dbmi/data/reader/validation/tabular/TabularDataValidation.java

Core symbols most depended-on inside this repo

Shape

Method 21,137
Class 2,392
Interface 210
Enum 135

Languages

Java100%

Modules by API surface

tetrad-lib/src/main/java/edu/cmu/tetrad/calculator/expression/ExpressionManager.java309 symbols
tetrad-gui/src/main/java/edu/cmu/tetradapp/workbench/AbstractWorkbench.java151 symbols
tetrad-gui/src/main/java/edu/cmu/tetradapp/editor/SemEstimatorEditor.java143 symbols
tetrad-gui/src/main/java/edu/cmu/tetradapp/editor/SemImEditor.java133 symbols
tetrad-gui/src/main/java/edu/cmu/tetradapp/editor/GridSearchEditor.java131 symbols
tetrad-gui/src/main/java/edu/cmu/tetradapp/model/GridSearchModel.java125 symbols
tetrad-lib/src/main/java/edu/cmu/tetrad/graph/GraphUtils.java124 symbols
tetrad-lib/src/main/java/edu/cmu/tetrad/sem/SemIm.java107 symbols
tetrad-lib/src/main/java/edu/cmu/tetrad/graph/Paths.java94 symbols
tetrad-lib/src/main/java/edu/cmu/tetrad/search/utils/FgesOrienter.java92 symbols
tetrad-gui/src/main/java/edu/cmu/tetradapp/session/SessionNode.java90 symbols
tetrad-lib/src/main/java/edu/cmu/tetrad/graph/TimeLagGraph.java88 symbols

For agents

$ claude mcp add tetrad \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page