If you are new, start with tutorials/00_start_here.md and read the tutorials in order.
- overview.md explains how everything fits together and what the package cannot do, and ends with a glossary.
- tutorials/00_start_here.md sets you up and introduces the three tutorials: 01_mri.md, 02_blockface.md and 03_histology.md.
- how-to/new_brain.md lists what to do, in order, for a new brain.
- how-to/train_models.md trains the networks again: what each was trained on, the commands, and how to check the result against the paper's.
- troubleshooting.md covers problems we have met and how to fix them.
- faq.md gives short answers, each with a link.
- brain_identifiers.md explains names such as MF283, MF1 and M1, and which brain was used for what.
- media/README.md says how the README's animations are made.
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.
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 |
| 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 |