forked from Inria-Empenn/narps_open_pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOC] list of available team ids in command tools documentation
- Loading branch information
Showing
5 changed files
with
41 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/python | ||
# coding: utf-8 | ||
|
||
""" Provide a command-line interface for the package narps_open.pipelines """ | ||
|
||
from argparse import ArgumentParser | ||
|
||
from narps_open.pipelines import get_implemented_pipelines | ||
|
||
def main(): | ||
""" Entry-point for the command line tool narps_open_pipeline """ | ||
|
||
# Parse arguments | ||
parser = ArgumentParser(description='Get description of a NARPS pipeline.') | ||
parser.add_argument('-v', '--verbose', action='store_true', | ||
help='verbose mode') | ||
arguments = parser.parse_args() | ||
|
||
# Print header | ||
print('NARPS Open Pipelines') | ||
|
||
# Print general information about NARS Open Pipelines | ||
print('A codebase reproducing the 70 pipelines of the NARPS study (Botvinik-Nezer et al., 2020) shared as an open resource for the community.') | ||
|
||
# Print pipelines | ||
implemented_pipelines = get_implemented_pipelines() | ||
print(f'There are currently {len(implemented_pipelines)} implemented pipelines: {implemented_pipelines}') | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains 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