Fast-HInt-ppi 0.1.9__tar.gz → 0.2.1__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.
Files changed (32) hide show
  1. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/Scoring_HInt.py +9 -8
  2. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/Utils_HInt.py +4 -3
  3. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt_ppi.egg-info/PKG-INFO +1 -1
  4. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/PKG-INFO +1 -1
  5. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/setup.py +1 -1
  6. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/Fast_HInt.py +0 -0
  7. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/File_proteins.py +0 -0
  8. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/__init__.py +0 -0
  9. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/get_good_inter_pae.py +0 -0
  10. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/__init__.py +0 -0
  11. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/calculate_mpdockq.py +0 -0
  12. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/clean_pdb.py +0 -0
  13. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/interface_assess.py +0 -0
  14. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/pi_score_utils.py +0 -0
  15. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/pisa_utils.py +0 -0
  16. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/run_piscore_wc.py +0 -0
  17. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/sc_utils.py +0 -0
  18. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/svm_model/__init__.py +0 -0
  19. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/svm_model/finalized_model_A.sav +0 -0
  20. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/svm_model/finalized_model_B.sav +0 -0
  21. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/svm_model/finalized_model_wc.sav +0 -0
  22. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/svm_model/scaler_model_A.sav +0 -0
  23. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/svm_model/scaler_model_B.sav +0 -0
  24. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt/script_pi_score/svm_model/scaler_model_wc.sav +0 -0
  25. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt_ppi.egg-info/SOURCES.txt +0 -0
  26. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt_ppi.egg-info/dependency_links.txt +0 -0
  27. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt_ppi.egg-info/entry_points.txt +0 -0
  28. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt_ppi.egg-info/requires.txt +0 -0
  29. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/Fast_HInt_ppi.egg-info/top_level.txt +0 -0
  30. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/MANIFEST.in +0 -0
  31. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/README.md +0 -0
  32. {fast_hint_ppi-0.1.9 → fast_hint_ppi-0.2.1}/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 = list()
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
- new_possible_prey.append(protein)
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
- new_possible_prey.append(protein)
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 :
@@ -477,7 +477,7 @@ def create_feature (file, Informations_dict, GPU, CPU, need_msa, need_pkl) :
477
477
  msa_name = f"./log_file/{protein}_msa.fasta"
478
478
  cmd = ["create_individual_features.py",
479
479
  f"--fasta_paths={msa_name}",
480
- f"--data_dir=/data/alphadata_v2",
480
+ f"--data_dir={Path_AlphaFold_Data}",
481
481
  "--save_msa_files=True",
482
482
  f"--output_dir={Path_Pickle_Feature}",
483
483
  "--max_template_date=2024-05-02",
@@ -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 pynvml.nvmlShutdown()
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 = max_vram - gpu_vram_used[gpu_id]
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Fast_HInt-ppi
3
- Version: 0.1.9
3
+ Version: 0.2.1
4
4
  Summary: A tool to find homologous interactions and speed up AlphaFold-based structural modeling.
5
5
  Home-page: https://github.com/Qrouger/HInt
6
6
  Author: Quentin Rouger
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Fast_HInt-ppi
3
- Version: 0.1.9
3
+ Version: 0.2.1
4
4
  Summary: A tool to find homologous interactions and speed up AlphaFold-based structural modeling.
5
5
  Home-page: https://github.com/Qrouger/HInt
6
6
  Author: Quentin Rouger
@@ -4,7 +4,7 @@ from setuptools import setup
4
4
 
5
5
  setup(
6
6
  name='Fast_HInt-ppi',
7
- version='0.1.9',
7
+ version='0.2.1',
8
8
  description=(
9
9
  'A tool to find homologous interactions and speed up AlphaFold-based structural modeling.'
10
10
  ),
File without changes
File without changes
File without changes