docs: regenerate pipeline DAG from current workflow#118
Open
ataha24 wants to merge 3 commits into
Open
Conversation
Add docs/images/make_dag.py, a small matplotlib generator that renders the pipeline overview (docs/images/dag.png) so the figure is reproducible and stays in sync with the Snakemake rules. Regenerate the DAG to match the current workflow: input modalities (T1w/T2w/FLAIR/ct) -> synthsr / n4_bias_correction -> norm_im / regmni2sub -> resample_im / mni2subfids / download_cnn_model -> applyfidmodel -> regqc / stereotaxy / fidqc -> all, including the 'if SynthSR' branch feeding the detector directly. Keeps the existing rulegraph-style layout and colour scheme.
Measure each label's actual rendered extent and size its box to fit (plus padding), and disable patch clipping so no box is cut at the axes edge. Fixes text spilling out of the resample_im / mni2subfids / download_cnn_model boxes.
Redraw the norm_im -> applyfidmodel dashed branch as a rounded bracket that exits norm_im to the left, runs down the left margin beside the 'if SynthSR' label, and enters applyfidmodel from the left, instead of curving through the resample_im column.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refreshes the pipeline overview figure (
docs/images/dag.png) so it reflects the current Snakemake workflow, and adds a small generator script so the figure is reproducible going forward.What changed
docs/images/make_dag.py— a minimal matplotlib generator (python docs/images/make_dag.py) that renders the DAG directly from the rule set. No new runtime dependencies.docs/images/dag.png— regenerated to match the current rules.Architecture (unchanged in spirit, kept the existing rulegraph style)
Input modalities (T1w / T2w / FLAIR / ct) →
synthsr/n4_bias_correction→norm_im/regmni2sub→resample_im/mni2subfids/download_cnn_model→applyfidmodel→regqc/stereotaxy/fidqc→all, including theif SynthSRbranch that feeds the detector directly for non-T1w inputs.Same rounded-box layout and colour scheme as before — just reproducible and in sync with the code.