-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun.py
More file actions
18 lines (16 loc) · 663 Bytes
/
run.py
File metadata and controls
18 lines (16 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import argparse
from graphegfr.configs import Configs
from graphegfr.main import run
from graphegfr.models import GraphEGFR as AttentiveFP_predictor, AttentiveFP_DGL
def parse_args():
global DEBUG
parser = argparse.ArgumentParser()
parser.add_argument("--configs", required=True, dest="configs", help='enter configuration file path')
parser.add_argument('--debug', default=False, action="store_true", dest='debug', help='debug file/test run')
args = parser.parse_args()
configs = Configs.parse(args.configs)
DEBUG = args.debug
return configs
if __name__ == "__main__":
configs = parse_args()
run(configs.to_dict(), DEBUG)