Commit d6b71fcb by Yasser Mohseni

Updates

parent cd58bd5e
...@@ -49,7 +49,7 @@ if not path.exists(map_dir): ...@@ -49,7 +49,7 @@ if not path.exists(map_dir):
mkdir(map_dir) mkdir(map_dir)
bin_path = "./mapsGenerator/build/maps_generator" bin_path = "./maps_generator"
v_dim = 24 v_dim = 24
def mapcomplex(file, pose_class, ch1, ch2, pair, pose): def mapcomplex(file, pose_class, ch1, ch2, pair, pose):
...@@ -172,10 +172,10 @@ def process_targetcomplex(targetcomplex, comp_dir, report_dict): ...@@ -172,10 +172,10 @@ def process_targetcomplex(targetcomplex, comp_dir, report_dict):
bad_poses = confom_dict.loc[(confom_dict.Comp == targetcomplex) & (confom_dict.Class == 0)].Conf.to_list() bad_poses = confom_dict.loc[(confom_dict.Comp == targetcomplex) & (confom_dict.Class == 0)].Conf.to_list()
ch1, ch2 = confom_dict.loc[confom_dict.Comp == targetcomplex][['ch1','ch2']].iloc[0] ch1, ch2 = confom_dict.loc[confom_dict.Comp == targetcomplex][['ch1','ch2']].iloc[0]
for pose in good_poses: for pose in good_poses:
file = path.join(comp_dir, pose + '.pdb') file = path.join(comp_dir, targetcomplex, pose + '.pdb')
mapcomplex(file, '1', ch1, ch2, targetcomplex, path.basename(pose)) mapcomplex(file, '1', ch1, ch2, targetcomplex, path.basename(pose))
for pose in bad_poses: for pose in bad_poses:
file = path.join(comp_dir, pose) file = path.join(comp_dir, targetcomplex, pose + '.pdb')
mapcomplex(file, '0', ch1, ch2, targetcomplex, path.basename(pose)) mapcomplex(file, '0', ch1, ch2, targetcomplex, path.basename(pose))
except Exception as e: except Exception as e:
......
...@@ -12,7 +12,6 @@ import pickle ...@@ -12,7 +12,6 @@ import pickle
import shutil import shutil
import pypdb import pypdb
import pandas as pd import pandas as pd
import protein as pr
from prody import * from prody import *
from os import path, mkdir, remove, getenv, listdir, system from os import path, mkdir, remove, getenv, listdir, system
from io import StringIO from io import StringIO
......
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