ervau commited on
Commit
94db867
·
1 Parent(s): 7419d2a

removed unnecessary code snippet

Browse files
Files changed (1) hide show
  1. run_prothgt_app.py +0 -14
run_prothgt_app.py CHANGED
@@ -151,20 +151,6 @@ def generate_prediction_df(protein_ids, model_paths, model_config_paths, go_cate
151
 
152
  heterodata = torch.load(output)
153
 
154
- # Remove unnecessary edge types
155
- edge_types_to_remove = [
156
- ('Protein', 'protein_function', 'GO_term_F'),
157
- ('Protein', 'protein_function', 'GO_term_P'),
158
- ('Protein', 'protein_function', 'GO_term_C'),
159
- ('GO_term_F', 'rev_protein_function', 'Protein'),
160
- ('GO_term_P', 'rev_protein_function', 'Protein'),
161
- ('GO_term_C', 'rev_protein_function', 'Protein')
162
- ]
163
-
164
- for edge_type in edge_types_to_remove:
165
- if edge_type in heterodata.edge_index_dict:
166
- del heterodata.edge_index_dict[edge_type]
167
-
168
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
169
 
170
  for go_cat, model_config_path, model_path in zip(go_category, model_config_paths, model_paths):
 
151
 
152
  heterodata = torch.load(output)
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
155
 
156
  for go_cat, model_config_path, model_path in zip(go_category, model_config_paths, model_paths):