diff scripts/S13_zip.py @ 1:c8af52875b0f draft

planemo upload for repository https://github.com/abims-sbr/adaptsearch commit ab76075e541dd7ece1090f6b55ca508ec0fde39d
author lecorguille
date Thu, 13 Apr 2017 09:46:45 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/S13_zip.py	Thu Apr 13 09:46:45 2017 -0400
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+
+import zipfile, os, re
+
+f_25 = "^25_.*$"
+f_19 = "^19_Reciprocal.*$"
+
+f_DNA = zipfile.ZipFile("output_file_DNA.zip", "w")
+f_PROT = zipfile.ZipFile("output_file_PROT.zip", "w")
+
+a = os.listdir("./")
+a = sorted(a)
+
+for i in a :
+	if re.match(f_25, i) :
+		f_DNA.write(i)
+	if re.match(f_19, i) :
+		f_PROT.write(i)