-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatc_runner.py
executable file
·30 lines (24 loc) · 1.08 KB
/
gatc_runner.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
#!/usr/bin/env python3
import argparse
from gatc.version import __version__
from gatc.gatc import GATC
import os
def main():
description=f"""
GATC: Genotype Array To Cervus. A parsing software to convert 50k reports into a format for cervus \n
Version: {__version__}"""
parser = argparse.ArgumentParser(description=description,formatter_class=argparse.RawTextHelpFormatter, add_help=False)
required = parser.add_argument_group('Required Arguments')
required.add_argument("-i", "--input", help="50k Final Report input file")
required.add_argument("-v", "--vcf", help="VCF of loci to extract from 50k")
optional = parser.add_argument_group('Optional Arguments')
optional.add_argument("-c", "--cervus_parse", help="if a previous cervus_parse output is given, GATC will add the 50k results to it")
optional.add_argument("-h", "--help", action="help", help="show this help message and exit")
args=parser.parse_args()
input=args.input
vcf=args.vcf
cp=args.cervus_parse
job=GATC(input,vcf,cp)
job.gatc_run()
if __name__ == '__main__':
main()