forked from brain-networks/event_detection
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli_plotting.py
More file actions
executable file
·45 lines (40 loc) · 899 Bytes
/
cli_plotting.py
File metadata and controls
executable file
·45 lines (40 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import argparse
def _get_parser():
"""
Parse command line inputs for aroma.
Returns
-------
parser.parse_args() : argparse dict
"""
parser = argparse.ArgumentParser(
description=(
"Plotting ets-matrix script "
)
)
# Required options
reqoptions = parser.add_argument_group("Required arguments")
reqoptions.add_argument(
"-d", "--directory",
dest="dir",
required=True,
help="Input directory.",
type=str,
nargs='+'
)
reqoptions.add_argument(
"-s", "--subject",
dest="subject",
required=True,
help="Subject",
type=str,
nargs='+'
)
reqoptions.add_argument(
"-nr", "--nroi",
dest="nROI",
required=True,
help="numero de ROI",
type=str,
nargs='+'
)
return parser