diff idpicker_wrapper.py @ 0:35cf23cd8c3d draft

Initial commit.
author galaxyp
date Fri, 10 May 2013 17:06:14 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/idpicker_wrapper.py	Fri May 10 17:06:14 2013 -0400
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+import optparse
+import sys
+import os
+
+
+def stop_err(msg):
+    sys.stderr.write("%s\n" % msg)
+    sys.exit(-1)
+
+
+def build_groups(input):
+    os.makedir("input_directory")
+
+
+def main():
+    parser = optparse.OptionParser()
+    parser.add_option('--input')
+    parser.add_option('--output')
+    (options, args) = parser.parse_args()
+    if not len(options.input):
+        stop_err("No input file found")
+    build_groups(options.input)
+
+if __name__ == '__main__':
+    main()