Mercurial > repos > abims-sbr > pairwise
view 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 source
#!/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)
