Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 4.87 KB

README.md

File metadata and controls

53 lines (44 loc) · 4.87 KB

Documentation

If you are new, start with tutorials/00_start_here.md and read the tutorials in order.

Pages

Each folder's README.md describes its commands and files, steps.yaml lists every step of the paper with its command, check and needs, and tests/README.md explains what decides whether a rerun matches the paper.

Commands

Run every command from the top of the repository, after source settings/roots.sh. Each one prints what it needs, what it does and what it writes with --help.

Command What it does Explained in
bash install.sh builds the Python environments settings/env
bash tests/selftest.sh checks the installation, without data or a GPU tests
$PY run.py --plan, --run, --status runs the paper's steps with their checks 00
$PY code/mri/linc-mri prep prepares a b0: one volume, its mask, its bias correction 01, Step B1
$PY_TIRL code/blockface/linc-reconstruct turns photographs into a blockface volume 02, Step 1
$PY code/blockface/registration/linc-register the registrations (mri, mri-template, blockface-template, direct-placement) and their check (qc) 01, Step B2, 02, Step 3
$PY_DEEP code/blockface/synthesis/linc-complete synthesizes the missing tissue; train retrains the network 02, Step 5
$PY_TIRL code/histology/linc-histology propose makes the match table, all runs the registration 03, Step B
code/labels/linc-labels push, interpolate, carry, connect: labels into the template 03, Step D
$PY -m shared.xfm list, chain and apply a brain's transforms, moving images between spaces overview
$PY_DEEP code/shared/linc-segment predict and train the segmentation networks code/shared/segment
$PY code/shared/linc-info reports what the installation runs with, for a bug report code/shared
$PY code/template/build_mri_channels.py, build_blockface_template.py, build_link.py rebuild the templates and the template link 01, part A, 02, Step 7
make -C code/figures numbers, figures, check remake and check the paper's numbers and figures code/figures
$PY tests/check_numbers.py, tests/verify_weights.py, tests/compare/*.py compare a numbers record, the weights or a result with the paper's tests
$PY_TIRL code/docs/tutorial_figures.py draws the tutorials' figures code/docs

Repository layout

install.sh builds the Python environments
run.py runs the paper's steps and checks each against the paper's files
steps.yaml every step of the paper
code/ the pipeline, one folder per stage
settings/ every parameter: one file per brain and one per stage
models/ the trained networks' weights
tests/ checks of the installation and of the results
docs/ this documentation