@@ -389,22 +389,21 @@ rule evaluation:
389389 ensemble_file = lambda wildcards : f"{ out_dir } { SEP } { get_dataset_label (wildcards )} -ml{ SEP } ensemble-pathway.txt" ,
390390 pca_coordinates_file = lambda wildcards : f"{ out_dir } { SEP } { get_dataset_label (wildcards )} -ml{ SEP } pca-coordinates.txt"
391391 output :
392- pr_file = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , "precision-recall-per-pathway.txt" ]),
393- pr_png = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , 'precision-recall-per-pathway.png' ]),
392+ pr_node_file = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , "precision-recall-per-pathway.txt" ]),
393+ pr_node_png = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , 'precision-recall-per-pathway.png' ]),
394394 pr_edge_file = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , "precision-recall-per-pathway_edge.txt" ]),
395395 pr_edge_png = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , 'precision-recall-per-pathway_edge.png' ]),
396396 pr_curve_png = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , 'precision-recall-curve-ensemble-nodes.png' ]),
397397 pca_chosen_pr_file = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , "precision-recall-pca-chosen-pathway.txt" ]),
398398 run :
399399 node_table = Evaluation .from_file (input .gold_standard_file ).node_table
400400 edge_table = Evaluation .from_file (input .gold_standard_file ).edge_table
401- Evaluation .precision_and_recall (input .pathways , node_table , algorithms , output .pr_file , output .pr_png )
401+ Evaluation .precision_and_recall_node (input .pathways , node_table , algorithms , output .pr_node_file , output .pr_node_png )
402402 Evaluation .precision_and_recall_edge (input .pathways , edge_table , algorithms , output .pr_edge_file , output .pr_edge_png )
403403 node_ensemble = Evaluation .edge_frequency_node_ensemble (input .ensemble_file )
404404 Evaluation .precision_recall_curve_node_ensemble (node_ensemble , node_table , output .pr_curve_png )
405405 pca_chosen_pathway = Evaluation .pca_chosen_pathway (input .pca_coordinates_file , out_dir )
406- Evaluation .precision_and_recall (pca_chosen_pathway , node_table , algorithms , output .pca_chosen_pr_file )
407- # Evaluation.precision_and_recall_edge(pca_chosen_pathway, edge_table, algorithms, output.pca_chosen_pr_file)
406+ Evaluation .precision_and_recall_node (pca_chosen_pathway , node_table , algorithms , output .pca_chosen_pr_file )
408407
409408
410409# Returns all pathways for a specific algorithm and dataset
@@ -431,9 +430,13 @@ rule evaluation_per_algo_pathways:
431430 output :
432431 pr_file = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , "{algorithm}-precision-recall-per-pathway.txt" ]),
433432 pr_png = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , '{algorithm}-precision-recall-per-pathway.png' ]),
433+ pr_edge_file = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , "{algorithm}-precision-recall-per-pathway_edge.txt" ]),
434+ pr_edge_png = SEP .join ([out_dir , '{dataset_gold_standard_pairs}-eval' , '{algorithm}-precision-recall-per-pathway_edge.png' ]),
434435 run :
435436 node_table = Evaluation .from_file (input .gold_standard_file ).node_table
436- Evaluation .precision_and_recall (input .pathways , node_table , algorithms , output .pr_file , output .pr_png )
437+ Evaluation .precision_and_recall_node (input .pathways , node_table , algorithms , output .pr_file , output .pr_png )
438+ edge_table = Evaluation .from_file (input .gold_standard_file ).edge_table
439+ Evaluation .precision_and_recall_edge (input .pathways , edge_table , algorithms , output .pr_edge_file , output .pr_edge_png )
437440
438441rule evaluation_per_algo_ensemble_pr_curve :
439442 input :
@@ -455,7 +458,7 @@ rule evaluation_per_algo_pca_chosen:
455458 run :
456459 node_table = Evaluation .from_file (input .gold_standard_file ).node_table
457460 pca_chosen_pathway = Evaluation .pca_chosen_pathway (input .pca_coordinates_file , out_dir )
458- Evaluation .precision_and_recall (pca_chosen_pathway , node_table , algorithms , output .pca_chosen_pr_file )
461+ Evaluation .precision_and_recall_node (pca_chosen_pathway , node_table , algorithms , output .pca_chosen_pr_file )
459462
460463# Remove the output directory
461464rule clean :
0 commit comments