Fast-HInt-ppi 0.1.9__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/Scoring_HInt.py +9 -8
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/Utils_HInt.py +3 -2
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt_ppi.egg-info/PKG-INFO +1 -1
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/PKG-INFO +1 -1
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/setup.py +1 -1
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/Fast_HInt.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/File_proteins.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/__init__.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/get_good_inter_pae.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/__init__.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/calculate_mpdockq.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/clean_pdb.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/interface_assess.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/pi_score_utils.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/pisa_utils.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/run_piscore_wc.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/sc_utils.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/__init__.py +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/finalized_model_A.sav +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/finalized_model_B.sav +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/finalized_model_wc.sav +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/scaler_model_A.sav +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/scaler_model_B.sav +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/scaler_model_wc.sav +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt_ppi.egg-info/SOURCES.txt +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt_ppi.egg-info/dependency_links.txt +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt_ppi.egg-info/entry_points.txt +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt_ppi.egg-info/requires.txt +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt_ppi.egg-info/top_level.txt +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/MANIFEST.in +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/README.md +0 -0
- {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/setup.cfg +0 -0
|
@@ -63,7 +63,7 @@ def Score_interaction (file, Informations_dict, CPU, Interaction, job="", multi_
|
|
|
63
63
|
result_dict = file.get_result_dict()
|
|
64
64
|
int_score = file.get_int_score() #saved scores
|
|
65
65
|
homo_score = file.get_homo_score()
|
|
66
|
-
new_possible_prey =
|
|
66
|
+
new_possible_prey = file.get_possible_prey()
|
|
67
67
|
Path_ccp4 = Informations_dict["Path_ccp4"]
|
|
68
68
|
regions = Informations_dict["Regions"]
|
|
69
69
|
nbr_homo = Informations_dict["Homo-oligomer"]
|
|
@@ -85,7 +85,6 @@ def Score_interaction (file, Informations_dict, CPU, Interaction, job="", multi_
|
|
|
85
85
|
if not exists :
|
|
86
86
|
subprocess.run([tool, "create", "-y", "-n", "pi_score","python=2.7", "scikit-learn=0.20.4", "biopython", "biopandas"], check=True)
|
|
87
87
|
|
|
88
|
-
|
|
89
88
|
if bait != "" and job == "" : #setup bait name
|
|
90
89
|
bait_name = bait.replace(";","_and_")
|
|
91
90
|
for prot in bait.split(";") :
|
|
@@ -94,8 +93,8 @@ def Score_interaction (file, Informations_dict, CPU, Interaction, job="", multi_
|
|
|
94
93
|
end = int(regions[prot].split("-")[1])
|
|
95
94
|
bait_name = bait_name.replace(prot,f"{prot}_{start}-{end}")
|
|
96
95
|
possible_prey = file.get_possible_prey()
|
|
97
|
-
|
|
98
96
|
if job != "" :
|
|
97
|
+
print("why")
|
|
99
98
|
bait = job.replace(job.split(";")[-1],"").strip(";")
|
|
100
99
|
bait_name = bait.replace(";","_and_")
|
|
101
100
|
possible_prey = [job.split(";")[-1].strip("\n")]
|
|
@@ -104,7 +103,7 @@ def Score_interaction (file, Informations_dict, CPU, Interaction, job="", multi_
|
|
|
104
103
|
start = int(regions[prot].split("-")[0])
|
|
105
104
|
end = int(regions[prot].split("-")[1])
|
|
106
105
|
bait_name = bait_name.replace(prot,f"{prot}_{start}-{end}")
|
|
107
|
-
|
|
106
|
+
|
|
108
107
|
#Multiprocessing to score all interactions
|
|
109
108
|
if os.path.isdir(f"./result_{Interaction}") == True :
|
|
110
109
|
if Interaction == "homo_int" : #for homo-oligomer
|
|
@@ -113,9 +112,10 @@ def Score_interaction (file, Informations_dict, CPU, Interaction, job="", multi_
|
|
|
113
112
|
ppi_list.append(f"./result_{Interaction}/{protein}_homo_{nbr_homo}er") #Found a solution for score only homo-oligomer without score
|
|
114
113
|
else :
|
|
115
114
|
result_dict[protein][f"hiQ_score_{nbr_homo}er"] = homo_score[protein][f"hiQ_score_{nbr_homo}er"]
|
|
116
|
-
if homo_score[protein][f"hiQ_score_{nbr_homo}er"] > 0 :
|
|
117
|
-
|
|
115
|
+
#if homo_score[protein][f"hiQ_score_{nbr_homo}er"] > 0 :
|
|
116
|
+
# new_possible_prey.append(protein)
|
|
118
117
|
if homo_score[protein][f"hiQ_score_{nbr_homo}er"] == 0 :
|
|
118
|
+
new_possible_prey.remove(protein)
|
|
119
119
|
result_dict[protein]["Reason_for_filtering"] = f"Bad homo-oligomer PAE : AF"
|
|
120
120
|
if Interaction == "PPI_int" : #for one vs all
|
|
121
121
|
for protein in possible_prey : #check if protein is already score
|
|
@@ -128,9 +128,10 @@ def Score_interaction (file, Informations_dict, CPU, Interaction, job="", multi_
|
|
|
128
128
|
ppi_list.append(f"./result_{Interaction}/{protein}_and_{bait_name}")
|
|
129
129
|
else :
|
|
130
130
|
result_dict[protein][f"iQ_score_vs_{bait_name}"] = int_score[protein][f"iQ_score_vs_{bait_name}"]
|
|
131
|
-
if int_score[protein][f"iQ_score_vs_{bait_name}"] > 0 :
|
|
132
|
-
|
|
131
|
+
#if int_score[protein][f"iQ_score_vs_{bait_name}"] > 0 :
|
|
132
|
+
# new_possible_prey.append(protein)
|
|
133
133
|
if int_score[protein][f"iQ_score_vs_{bait_name}"] == 0 :
|
|
134
|
+
new_possible_prey.remove(protein)
|
|
134
135
|
result_dict[protein]["Reason_for_filtering"] = f"Bad interactions with {bait_name} : inter PAE > 10 A"
|
|
135
136
|
if Interaction == "Compounds" : #for compounds
|
|
136
137
|
for compound in Compounds :
|
|
@@ -940,7 +940,8 @@ def Generate_first_batch(job_with_vram_length, GPU, multi_job_per_gpu) :
|
|
|
940
940
|
pynvml.nvmlInit()
|
|
941
941
|
handle = pynvml.nvmlDeviceGetHandleByIndex(int(GPU[0]))
|
|
942
942
|
mem_info = pynvml.nvmlDeviceGetMemoryInfo(handle)
|
|
943
|
-
vram = (mem_info.total / 1024**2) * 0.001 # GiB
|
|
943
|
+
vram = (mem_info.total / 1024**2) * 0.001 # GiB
|
|
944
|
+
pynvml.nvmlShutdown()
|
|
944
945
|
gpu_vram_used = {gpu: 0.0 for gpu in GPU}
|
|
945
946
|
gpu_jobs = []
|
|
946
947
|
|
|
@@ -956,7 +957,7 @@ def Generate_first_batch(job_with_vram_length, GPU, multi_job_per_gpu) :
|
|
|
956
957
|
|
|
957
958
|
for gpu_id in sorted_gpus :
|
|
958
959
|
|
|
959
|
-
free =
|
|
960
|
+
free = vram - gpu_vram_used[gpu_id]
|
|
960
961
|
|
|
961
962
|
if job_vram <= free and (multi_job_per_gpu or len(gpu_jobs[gpu_id]) == 0) :
|
|
962
963
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/scaler_model_A.sav
RENAMED
|
File without changes
|
{fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/scaler_model_B.sav
RENAMED
|
File without changes
|
{fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.0}/Fast_HInt/script_pi_score/svm_model/scaler_model_wc.sav
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|