• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neurospin-deepinsight / brainprep / 20305076052

17 Dec 2025 01:49PM UTC coverage: 79.341%. Remained the same
20305076052

push

github

AGrigis
brainprep: fix linters.

1444 of 1820 relevant lines covered (79.34%)

0.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/brainprep/cli.py
1
##########################################################################
2
# NSAp - Copyright (C) CEA, 2022 - 2025
3
# Distributed under the terms of the CeCILL-B license, as published by
4
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6
# for details.
7
##########################################################################
8

9
""" Provide a command line interface.
10
"""
11

12

13
def main():
×
14
    """
15
    BrainPrep command-line interface.
16

17
    This function exposes all BrainPrep workflows through a unified
18
    command-line interface powered by ``fire``. Each workflow
19
    corresponds to a processing pipeline implemented in
20
    ``brainprep.workflow`` and can be invoked directly from the terminal.
21

22
    Notes
23
    -----
24
    This function relies on ``fire.Fire`` to automatically generate a
25
    command-line interface from a dictionary mapping workflow names to
26
    their corresponding functions. Any additional keyword arguments
27
    provided on the command line are forwarded to the selected workflow.
28
    """
29
    import fire
×
30

31
    import brainprep.workflow as wf
×
32

33
    fire.Fire({
×
34
        "subject-level-qa": wf.brainprep_quality_assurance,
35
        "group-level-qa": wf.brainprep_group_quality_assurance,
36
        "subject-level-defacing": wf.brainprep_defacing,
37
        "subject-level-quasiraw": wf.brainprep_quasiraw,
38
        "group-level-quasiraw": wf.brainprep_group_quasiraw,
39
        "subject-level-brainparc": wf.brainprep_brainparc,
40
        "group-level-brainparc": wf.brainprep_group_brainparc,
41
        "longitudinal-brainparc": wf.brainprep_longitudinal_brainparc,
42
        "subject-level-vbm": wf.brainprep_vbm,
43
        "group-level-vbm": wf.brainprep_group_vbm,
44
        "longitudinal-vbm": wf.brainprep_longitudinal_vbm,
45
        "subject-level-fmriprep": wf.brainprep_fmriprep,
46
        # "tbss-preproc": wf.brainprep_tbss_preproc,
47
        # "tbss": wf.brainprep_tbss,
48
        "subject-level-dmriprep": wf.brainprep_dmriprep,
49
        "group-level-dmriprep": wf.brainprep_group_dmriprep
50
    })
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc