Skip to content

how to run best skullstripping from command line #76

Description

@mrneont

Hi-

I would like to do skullstripping/brain-extraction (i.e., get a detailed mask of the brain within a whole head FOV) from the command line using brainchop. What is the best way to do so?

When I run:

brainchop                                                             \
    "${dset_in}"                                                    \
    --skull-strip                                                     \
    --mask "${mask_out}"                                        \

... I get prompted to answer a question, but instead I want to script this so I can swarm it over many datasets.

Therefore, I added an option --no-optimize to not get prompted:

brainchop                                                             \
    "${dset_in}"                                                    \
    --skull-strip                                                     \
    --no-optimize                                               \
    --mask "${mask_out}"                                        \

... but I would like to not sacrifice masking quality by doing this (the name of the option kind of suggests that).

Is the latter command the best way to script running brainchop for skullstripping on the command line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions