-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
36 lines (30 loc) · 1.16 KB
/
main.py
File metadata and controls
36 lines (30 loc) · 1.16 KB
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
# Copyright 2020 by AstraZeneca
# All rights reserved.
@authors: ML&AI - Oncology Biometrics, Data Science & AI - Translational Medicine
@email: harish.raviprakash@astrazeneca.com
@description: Main file for the multiomics pipeline
"""
import os
import argparse
from src.pipeline import pipeline
def main(args: argparse.ArgumentParser):
"""Interface to the main pipeline
Args:
args (argparse.ArgumentParser): Arguments for running the pipeline
"""
csv_path = args.csv
config_path = args.yaml
experiment = args.expt
pipeline(config_path=config_path, csv_path=csv_path, expt_name=experiment)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Multiomics survival pipeline")
parser.add_argument('--yaml', '-y', default="config.yml", type=str, help='Configuration dictionary')
parser.add_argument('--csv', '-c', default='',
type=str, help='Full path to the features csv')
parser.add_argument('--expt', '-e', default='000001',
type=str, help='Experiment number')
args = parser.parse_args()
main(args)