-
Notifications
You must be signed in to change notification settings - Fork 17
/
comp
executable file
·26 lines (25 loc) · 1.23 KB
/
comp
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
#!/usr/bin/env python3
################################################################
# This file part of GALA Gap-free Long-reads Assembler #
# Auther: Mohamed awad #
# Company: Xiangchao Gan lab (MPIPZ) #
# Released under the (MIT) license (see LICENSE file) #
################################################################
import os
import sys
scr='src'
path=os.path.dirname(os.path.abspath(__file__))
absolute=os.path.join(path,scr)
sys.path.insert(0, absolute)
from comp_generator import comp_generator
import argparse
parser = argparse.ArgumentParser(prog="comp",usage='%(prog)s -h [options] <draft_names & paths> ',description='Generate genome comparison files, part of GALA Gap-free Long-reads Assembler')
parser.add_argument("drafts",nargs=1,type=str,help='Draft names and paths\t[required]')
parser.add_argument("-o",nargs=1, type=str, default=[os.getcwd()], metavar='output files path\t[default current directory]',dest="output")
parser.add_argument('-v','--version', action='version', version='%(prog)s 1.0.0')
args = parser.parse_args()
drafts=args.drafts[0]
output=args.output[0]
comp_generator(genomes=drafts,output=output)
if '-v':
parser.parse_args(['-v'])