diff interproscan5/fake_ips.py @ 0:fe8e43a26870 draft

Uploaded
author mkh
date Thu, 28 Jan 2016 19:34:51 -0500
parents
children 74cf3f49f10c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/interproscan5/fake_ips.py	Thu Jan 28 19:34:51 2016 -0500
@@ -0,0 +1,35 @@
+"""
+"""
+
+__author__ = 'mkh'
+
+if __name__ == '__main__':
+    import argparse
+    import os
+    from shutil import copyfile
+    import sys
+
+    parser = argparse.ArgumentParser(description='Fake IPS.')
+
+    parser.add_argument('-dp', action='store_true')
+    parser.add_argument('--input')
+    parser.add_argument('--seqtype')
+    parser.add_argument('-f', dest='formats', default='tsv')
+    parser.add_argument('--applications')
+    parser.add_argument('--tempdir')
+    parser.add_argument('--pathways', action='store_true')
+    parser.add_argument('--goterms', action='store_true')
+    parser.add_argument('--iprlookup', action='store_true')
+    parser.add_argument('--mode')
+    parser.add_argument('--clusterrunid')
+    parser.add_argument('--output-file-base', dest='output_file_base')
+    parser.add_argument('-o', dest='output_file', default="/tmp/junk")
+
+    args = parser.parse_args()
+    formats = args.formats.split(',')
+    src_data_dir = os.path.dirname(__file__) + '/data'
+
+    for ext in formats:
+        if ext in ['html', 'svg']:
+            ext += '.tar.gz'
+        copyfile(src_data_dir + '/' + '__base__' + '.' + ext, args.output_file_base + '.' + ext)