-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.py
33 lines (27 loc) · 1.12 KB
/
configure.py
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
import argparse
import sys
def parse_args():
"""
Parse input arguments
"""
parser = argparse.ArgumentParser()
parser.add_argument("--input_path", default="./example_data/Kolodziejczyk.csv",
type=str, help="path of input data")
parser.add_argument("--lower_bound", default=None,
type=int, help="lower bound of estimated low-quality \
cell number")
parser.add_argument("--upper_bound", default=None,
type=int, help="upper bound of estimated low-quality \
cell number")
parser.add_argument("--labeled", default=True,
help="whether the data has \
quality labels. If true, evaluation information will be \
printed.", type=lambda x: (str(x).lower() == 'true'))
parser.add_argument("--output_path", default=None,
type=str, help="path of output data")
if len(sys.argv) == 1:
parser.print_help()
sys.exit(1)
args = parser.parse_args()
return args
FLAGS = parse_args()