2323 read_specific_columns ,
2424 print_progress ,
2525 export_graph_to_pickle ,
26+ read_pro_go_data ,
2627)
2728from tools .workflow import run_workflow , sample_data
2829
@@ -55,13 +56,17 @@ def main():
5556 testing_output_image_path = Path ("./output/images/" )
5657 testing_input_directory_path = Path ("./tests/testing-dataset/" )
5758 testing_graph_file_path = Path (testing_input_directory_path , "graph.pickle" )
58-
59+
60+ namespace = ["molecular_function" , "biological_process" , "cellular_component" ]
61+ # change the go_term_type variable to include which go term namespace you want
62+ go_term_type = [namespace [2 ]]
63+
5964 interactome_columns = [0 , 1 ]
60- interactome = read_specific_columns (zfish_interactome_path , interactome_columns , "," )
65+ interactome = read_specific_columns (fly_interactome_path , interactome_columns , "," )
6166
62- go_inferred_columns = [0 , 2 ]
63- go_protein_pairs = read_specific_columns (
64- zfish_go_association_path , go_inferred_columns , ","
67+ go_inferred_columns = [0 , 2 , 3 ]
68+ go_protein_pairs = read_pro_go_data (
69+ fly_go_association_path , go_inferred_columns , go_term_type , ","
6570 )
6671
6772 protein_list = []
@@ -77,13 +82,13 @@ def main():
7782
7883 # Define algorithm classes and their names
7984 algorithm_classes = {
80- # "OverlappingNeighbors": OverlappingNeighbors,
81- # "OverlappingNeighborsV2": OverlappingNeighborsV2,
82- # "OverlappingNeighborsV3": OverlappingNeighborsV3,
83- # "ProteinDegree": ProteinDegree,
84- # "ProteinDegreeV2": ProteinDegreeV2,
85- # "ProteinDegreeV3": ProteinDegreeV3,
86- # "SampleAlgorithm": SampleAlgorithm,
85+ "OverlappingNeighbors" : OverlappingNeighbors ,
86+ "OverlappingNeighborsV2" : OverlappingNeighborsV2 ,
87+ "OverlappingNeighborsV3" : OverlappingNeighborsV3 ,
88+ "ProteinDegree" : ProteinDegree ,
89+ "ProteinDegreeV2" : ProteinDegreeV2 ,
90+ "ProteinDegreeV3" : ProteinDegreeV3 ,
91+ "SampleAlgorithm" : SampleAlgorithm ,
8792 "HypergeometricDistribution" : HypergeometricDistribution ,
8893 "HypergeometricDistributionV2" : HypergeometricDistributionV2 ,
8994 "HypergeometricDistributionV3" : HypergeometricDistributionV3 ,
0 commit comments