DEFACE(1)
π DEFACE(1) π
okay bestie, welcome to the deface page β it's a manual page, it lives in section 1 of the Generated Python Manual, and it's about to become your new personality. grab a snack, we're doing this π
β¨ NAME β¨
deface β the girl who removes faces from neuroimaging data and does it flawlessly, no cap.
π SYNOPSIS π
deface [-h] [-p LABEL [LABEL ...]] [-o DESTINATION] [-c [SPECS]] [-a
DICT] [-f] bidsfolder pattern
that's the whole summoning spell. yes it's long. yes it ate. π
π¦ DESCRIPTION π¦
So basically, deface is a wrapper around the pydeface defacing tool β that's over at https://github.com/poldracklab/pydeface β and lowkey, it's doing a lot of heavy lifting for you. Heads up though: Pydeface requires an existing installation of FSL flirt or it's just gonna sit there looking at you. π
Except for BIDS inheritances and IntendedFor usage, this wrapper is BIDS-aware (a 'bidsapp', iykyk) and writes BIDS compliant output. it's giving organized. it's giving reproducible. it's giving slay.
Linux girlies, listen: you can distribute the computations to your HPC compute cluster if the DRMAA libraries are installed and the DRMAA_LIBRARY_PATH environment variable is set. cluster era unlocked π₯
For multi-echo data see medeface β that's a whole different queen, go read her page.
Here's the positional tea:
bidsfolderβ the bids-directory with the subject data. it's the home base, the main character location πpatternβ a globlike search pattern (relative to the subject/session folder) that picks which images need to be defaced, e.g.'anat/*_T1w*'. very "select your fighters" energy β¨
π OPTIONS π
-p LABEL [LABEL ...],--participant LABEL [LABEL ...]β a space separated list ofsub-#identifiers to process (thesub-prefix can be left out, we're chill like that). If you don't specify it, then all participants get processed. everyone's invited to the party π«Ά-o DESTINATION,--output DESTINATIONβ a string that decides where the defaced images get saved. It can be the name of a BIDS datatype folder, such as'anat', or of the derivatives folder, i.e.'derivatives'. And if output is left empty? then the original images are replaced by the defaced images. β οΈ no takebacks, bestie β that's the real deal.-c [SPECS],--cluster [SPECS]β use the DRMAA library to submit the deface jobs to a high-performance compute (HPC) cluster. You can add an opaque DRMAA argument with native specifications for your HPC resource manager. NB: Use quotes and include at least one space character to prevent premature parsing β see examples below for the vibe β¨-a DICT,--args DICTβ additional arguments (in dict/json-style) that get passed topydeface. NB: Use quotes. See examples for usage. fr fr, quote it.-f,--forceβ deface all images, regardless if they have already been defaced (i.e. if{"Defaced": True}in the json sidecar file). she said do it again. π
π COMMENTS π
examples, aka the group chat screenshots:
deface myproject/bids anat/*_T1w*
deface myproject/bids anat/*_T1w* -p 001 003 -o derivatives
deface myproject/bids anat/*_T1w* -c -n "-l walltime=00:60:00,mem=4gb"
deface myproject/bids anat/*_T1w* -a '{"cost": "corratio", "verbose": ""}'
look at her go ππ
π AUTHOR π
Marcel Zwiers <m.zwiers@donders.ru.nl> β the icon, the legend, the moment.
and that's the whole page, bestie!! π this is from bidscoin 4.6.2, dated 2025-11-06, so if you're quoting it in your thesis, cite her right. go deface some brains responsibly. mwah πβ¨
π¦ where this page comes from
- fedora 43: bidscoin 4.6.2-1.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms