Public | Automated Build

Last pushed: 2 months ago
Short Description
Dockerfile for the analysis of the CNP task data.
Full Description

CNP task analysis

This repository contains the code to analyse the CNP task data (ds_000030, available on


The only dependency to re-run these analyses is singularity 2.3.

The analyses have been run in a singularity container, based on a docker container. The docker container is publicly available on docker hub.

On a machine that has docker installed, the singularity container can be obtained by running:

docker run -v /var/run/docker.sock:/var/run/docker.sock -v /local:/output --privileged -t --rm singularityware/docker2singularity poldracklab/cnp_task_analysis:1.0

After running this command, the singularity container can be found in the /local folder on the local machine.

Machine and data configuration

The data is assumed to be structured in BIDS format and preprocessed using fmriprep. All configuration (loading singularity, referencing data and code paths) is specified in

File structure

+-- hpc/                            Folder with scripts used to submit and run jobs
|    |                              on a HPC environment with a SLURM scheduler.
|    |
|    +--              Script to prepare task files (each line = 1 task)
|    +--         Array job script that run the first level analyses.
|    +--        Array job script that runs the group analyses.
|    +--    Job script to compute the ACM's for all contrasts.
|    |
|    +--         Python script to write json with contrast information.
|    |                              (called by
|    +--             Python script to write task files.
|    |                              (called by
|    +--       Python script to write task files.
|                                   (called by
+-- utils/
|    +--                   Functions used in first level analyses.
|    +--            Script to rename and collect the tmaps for neurovault.
+--                 Program to run first level analysis on 1 subject.
+--                Program to run group level analysis on 1 contrast
|                                   (and 1 task).
+--            Program to generate ACM's for all contrasts.
+--            Program to write figures used in the accompanying
|                                   paper.
+--                       configuration file setting environment variables
|                                   specifying the location of the data and code.
+-- Dockerfile                      File to create docker container. Autobuild on docker
Docker Pull Command
Source Repository

Comments (0)