File size: 402 Bytes
1b9456c
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import torch

# Example dictionaries
dict1 = torch.load("/new-stg/home/young/ppi-data/gold_standard_embedded/Intra2_dictionary_1500_or_less/protein_dictionary.pt")
dict2 = torch.load("/new-stg/home/young/ppi-data/gold_standard_embedded/Intra2_dictionary_1500_greater/protein_dictionary.pt")

# Combine dictionaries
combined_dict = {**dict1, **dict2}

torch.save(combined_dict, "protein_dictionary.pt")