Andrew Reid PhD

ABOUT CV PUBLICATIONS RESEARCH SOFTWARE CONTACT BLOG CODE

Code Sharing

Blog 21: Causal Discovery
Description

This is the Python code corresponding to blog post 21, discussing causal discovery approaches. This code is a simplistic implementation of the PC algorithm. It can be used to (1) generate samples from the source directed acyclic graph (DAG) with associated (conditional) probabilities; and (2) attempt to discovery this DAG.

Instructions

Extract the archive. Run generate_*.py, process_*.py, or test_*.py using the python command. See the README file for more details. The software was developed using Anaconda 2022.10, Python 3.9. Environment files are provided, including environment-history.yml and environment-full.yml.

Language

Python

Modified

23-09-2024

Requires
►Anaconda 2020.10 or later
36K
ModelGUI 1.0.32 [latest]
Description

This is the full ModelGUI application. It contains executables and all dependencies. For more information, see the wiki site. See Github link for source code. See this link for previous versions of ModelGUI.

Instructions

Extract the archive. To run the application, execute ./mgui-amd64 or ./mgui-i586 for Linux, depending on whether your system is 64- or 32-bit. Use mgui-amd64.bat or mgui-i586.bat for Windows. For Mac, use ./mgui-mac. You must have Java JDK 10 or later installed (this is typically the case for newer systems; just trying running it first -- if you get an error you may need to download the linked JDK). More details are in the README file.

Language

Java

Modified

11-01-2021

Requires
►Java JDK 10 or later
183.0M
ModelGUI 1.0.31
Description

This is the full ModelGUI application. It contains executables and all dependencies. For more information, see the wiki site. See Github link for source code. See this link for previous versions of ModelGUI.

Instructions

Extract the archive. To run the application, execute ./mgui-amd64 or ./mgui-i586 for Linux, depending on whether your system is 64- or 32-bit. Use mgui-amd64.bat or mgui-i586.bat for Windows. For Mac, use ./mgui-mac. You must have Java JDK 8 or later installed (this is typically the case for newer systems; just trying running it first -- if you get an error you may need to download the linked JDK). More details are in the README file.

Language

Java

Modified

24-11-2020

Requires
►Java JDK 1.8 or later
108.0M
ALE Demo
Description

Matlab script to generate plots demonstrating how Activation Likelihood Estimation (ALE) – a meta-analytic neuroimaging approach – works. See this article for a description of the approach. Use the file gaussians.m to run the demo.

Instructions

Extract the scripts somewhere on your hard disk; done.

Language

Matlab

Modified

03-12-2018

Requires
►Signal processing toolbox
5K
Functional Connectivity Models
Description

Simple simulation used to explore functional covariance and its relationship to physical connectivity (Blog #11).

Instructions

Extract the script somewhere on your hard disk; done.

Language

Matlab

Modified

26-07-2017

Requires

None

12K
My Matlab Library
Description

A collection of custom function scripts that are used in most of my Matlab code.

Instructions

Extract the archive somewhere on your hard disk, and add the directory name to your Matlab path using [addpath](http://www.mathworks.com/help/matlab/ref/addpath.html) [path/to/directory].

Language

Matlab

Modified

20-09-2016

Requires

None

3.7M
ModelGUI 1.0.30
Description

This is the full ModelGUI application. It contains executables and all dependencies. For more information, see the wiki site. See Github link for source code. See this link for previous versions of ModelGUI.

Instructions

Extract the archive. To run the application, execute ./mgui-amd64 or ./mgui-i586 for Linux, depending on whether your system is 64- or 32-bit. Use mgui-amd64.bat or mgui-i586.bat for Windows. For Mac, use ./mgui-mac. You must have Java JDK 8 or later installed (this is typically the case for newer systems; just trying running it first -- if you get an error you may need to download the linked JDK). More details are in the README file.

Language

Java

Modified

29-04-2020

Requires
►Java JDK 1.8 or later
90.0M
Simulated Annealing Example - 1D
Description

This implements a very simple 1-dimensional simulated annealing optimization, as shown in this blog entry. This is not useful for anything but didactic purposes! There are many better simulated annealing libraries out there.

Instructions

Extract the archive, and use the file examples.m to run the examples. Remember to add the dependencies to your Matlab path!

Language

Matlab

Modified

20-09-2016

Requires
►lib_areid
►export_fig
8.0M
Simulated Annealing Example - 2D (Foraging)
Description

This extends the 1-dimensional simulated annealing example to 2 dimensions, which for example can demonstrate some basic principles of foraging optimization. As with the 1D, this is not useful for anything but didactic purposes! There are many better simulated annealing libraries out there.

Instructions

Extract the archive, and use the file forage_example.m to run the examples. Remember to add the dependencies to your Matlab path!

Language

Matlab

Modified

20-09-2016

Requires
►lib_areid
►anneal_1d
►export_fig
5.3M