comparison idpicker_wrapper.py @ 19:933a77287b5f draft

Uploaded
author galaxyp
date Tue, 25 Jun 2013 16:52:45 -0400
parents 35cf23cd8c3d
children
comparison
equal deleted inserted replaced
18:d3d4e579321b 19:933a77287b5f
1 #!/usr/bin/env python
2 import optparse
3 import sys
4 import os
5
6
7 def stop_err(msg):
8 sys.stderr.write("%s\n" % msg)
9 sys.exit(-1)
10
11
12 def build_groups(input):
13 os.makedir("input_directory")
14
15
16 def main():
17 parser = optparse.OptionParser()
18 parser.add_option('--input')
19 parser.add_option('--output')
20 (options, args) = parser.parse_args()
21 if not len(options.input):
22 stop_err("No input file found")
23 build_groups(options.input)
24
25 if __name__ == '__main__':
26 main()