mgyigit commited on
Commit
db965ce
1 Parent(s): 609e5a4

Update src/bin/PROBE.py

Browse files
Files changed (1) hide show
  1. src/bin/PROBE.py +5 -8
src/bin/PROBE.py CHANGED
@@ -17,14 +17,7 @@ def load_representation(multi_col_representation_vector_file_path):
17
 
18
  def run_probe(benchmarks, representation_name, representation_file_human, representation_file_affinity, similarity_tasks=["Sparse","200","500"], function_prediction_aspec="All_Aspects", function_prediction_dataset="All_Data_Sets", family_prediction_dataset=["nc","uc50","uc30","mm15"], detailed_output=False):
19
  print("\n\nPROBE (Protein RepresentatiOn Benchmark) run is started...\n\n")
20
- print(type(benchmarks))
21
- print(benchmarks)
22
- if any(item in ['similarity', 'function', 'family', 'all'] for item in benchmarks):
23
- print("AAAAAAAAA")
24
- else:
25
- print("BBBBBBBB")
26
 
27
-
28
  if any(item in ['similarity', 'function', 'family', 'all'] for item in benchmarks):
29
  print("\nRepresentation vectors are loading...\n")
30
  human_representation_dataframe = load_representation(representation_file_human)
@@ -36,7 +29,11 @@ def run_probe(benchmarks, representation_name, representation_file_human, repres
36
  ssi.protein_names = ssi.representation_dataframe['Entry'].tolist()
37
  ssi.similarity_tasks = similarity_tasks
38
  ssi.detailed_output = detailed_output
39
- ssi.calculate_all_correlations()
 
 
 
 
40
 
41
  if "function" in benchmarks:
42
  print("\n\nOntology-based protein function prediction benchmark is running...\n")
 
17
 
18
  def run_probe(benchmarks, representation_name, representation_file_human, representation_file_affinity, similarity_tasks=["Sparse","200","500"], function_prediction_aspec="All_Aspects", function_prediction_dataset="All_Data_Sets", family_prediction_dataset=["nc","uc50","uc30","mm15"], detailed_output=False):
19
  print("\n\nPROBE (Protein RepresentatiOn Benchmark) run is started...\n\n")
 
 
 
 
 
 
20
 
 
21
  if any(item in ['similarity', 'function', 'family', 'all'] for item in benchmarks):
22
  print("\nRepresentation vectors are loading...\n")
23
  human_representation_dataframe = load_representation(representation_file_human)
 
29
  ssi.protein_names = ssi.representation_dataframe['Entry'].tolist()
30
  ssi.similarity_tasks = similarity_tasks
31
  ssi.detailed_output = detailed_output
32
+ print("IN SIMILARITY CALC")
33
+ similarity_result = ssi.calculate_all_correlations()
34
+ print("OUT SIMILARITY CALC")
35
+ print(similarity_result)
36
+
37
 
38
  if "function" in benchmarks:
39
  print("\n\nOntology-based protein function prediction benchmark is running...\n")