Skip to content

Instantly share code, notes, and snippets.

@akhanf
Created March 6, 2025 18:12
Show Gist options
  • Save akhanf/5504c5ea3ed82fb853938a42998bff1c to your computer and use it in GitHub Desktop.
Save akhanf/5504c5ea3ed82fb853938a42998bff1c to your computer and use it in GitHub Desktop.
unfold screenshot hippunfold
rule screenshot_unfold:
input:
surf_gii=bids(
root=work,
datatype="surf",
suffix="midthickness.surf.gii",
desc="nostruct",
space="unfold",
hemi="{hemi}",
label="{label}",
boundarysmooth="{boundarysmooth}",
featuresmooth="{featuresmooth}",
edgeangle="{edgeangle}",
featureangle="{featureangle}",
niter="{niter}",
**inputs.subj_wildcards,
),
output:
png=bids(
root=work,
datatype="surf",
suffix="midthickness.png",
desc="nostruct",
space="unfold",
hemi="{hemi}",
label="{label}",
boundarysmooth="{boundarysmooth}",
featuresmooth="{featuresmooth}",
edgeangle="{edgeangle}",
featureangle="{featureangle}",
niter="{niter}",
**inputs.subj_wildcards,
),
shell:
"set +o pipefail; set +e; freeview -f {input}:vertex=1 -cam elevation 90 roll -90 -ss {output}; exit 0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment