comparison 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
comparison
equal deleted inserted replaced
0:e95d4b20c62d 1:c8af52875b0f
1 #!/usr/bin/env python
2
3 import zipfile, os, re
4
5 f_25 = "^25_.*$"
6 f_19 = "^19_Reciprocal.*$"
7
8 f_DNA = zipfile.ZipFile("output_file_DNA.zip", "w")
9 f_PROT = zipfile.ZipFile("output_file_PROT.zip", "w")
10
11 a = os.listdir("./")
12 a = sorted(a)
13
14 for i in a :
15 if re.match(f_25, i) :
16 f_DNA.write(i)
17 if re.match(f_19, i) :
18 f_PROT.write(i)