Commit c04a6b44 by Mustafa Tekpinar

Clean tree files in Newick format produced by JET

parent 282a71e7
......@@ -11,6 +11,7 @@ import re
import math
import subprocess
import shutil
import glob
......@@ -201,6 +202,14 @@ def cleanTheMess(prot,bFile,fFile, chainID):
# if os.path.isfile(prot+"/"+prot+"_jet.res"):
# os.rename(prot+"/"+prot+"_jet.res",prot+"_jet.res")
# os.remove(prot+".pdb")
# Get all files with suffix nwk
treefiles = glob.glob('*.nwk')
# Iterate over the list of files and remove individually
for file in treefiles:
os.remove(file)
dir_name = prot+"/"
if os.path.isdir(dir_name):
for f in os.listdir(dir_name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment