Skip to content

Commit

Permalink
issue #13: removed references to evaluator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jia Jie Wu committed Feb 9, 2018
1 parent fa96b1c commit 463a99a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Swing/Swing.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def compile_roller_edges(self, self_edges=False):
#todo: returns nothing?
return

def make_static_edge_dict(self, true_edges, self_edges=False, lag_method='max_median'):
def make_static_edge_dict(self, self_edges=False, lag_method='max_median'):
"""
Make a dictionary of edges
:return:
Expand Down
6 changes: 1 addition & 5 deletions run_swing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pandas as pd
from Swing import Swing
from Swing.util.Evaluator import Evaluator

# Load data
gene_start_column = 1
Expand Down Expand Up @@ -32,10 +31,7 @@


# Load the reference standard for scoring in silico predictions
evaluator = Evaluator(gold_standard_file, '\t')
true_edges = evaluator.gs_flat.tolist()

sg.make_static_edge_dict(true_edges, self_edges=False, lag_method='mean_mean')
sg.make_static_edge_dict(self_edges=False, lag_method='mean_mean')
ranked_edges = sg.make_sort_df(sg.edge_dict)

roc_dict, pr_dict = sg.score(ranked_edges, gold_standard_file=gold_standard_file)
Expand Down

0 comments on commit 463a99a

Please sign in to comment.