Skip to content

Commit

Permalink
annotations -> prop_annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
coolmaksat committed Jul 6, 2021
1 parent 1e84042 commit 5f87260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions evaluate_diamondblast.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def main(train_data_file, test_data_file, diamond_scores_file, ont):
terms_dict = {v: i for i, v in enumerate(terms)}

train_df = pd.read_pickle(train_data_file)
annotations = train_df['annotations'].values
annotations = train_df['prop_annotations'].values
annotations = list(map(lambda x: set(x), annotations))

test_df = pd.read_pickle(test_data_file)
# Annotations
test_annotations = test_df['annotations'].values
test_annotations = test_df['prop_annotations'].values
test_annotations = list(map(lambda x: set(x), test_annotations))

go_rels.calculate_ic(annotations + test_annotations)
Expand Down
4 changes: 2 additions & 2 deletions evaluate_diamondscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def main(train_data_file, test_data_file, diamond_scores_file, ont):
go_rels = Ontology('data/go.obo', with_rels=True)

train_df = pd.read_pickle(train_data_file)
annotations = train_df['annotations'].values
annotations = train_df['prop_annotations'].values
annotations = list(map(lambda x: set(x), annotations))

test_df = pd.read_pickle(test_data_file)
test_annotations = test_df['annotations'].values
test_annotations = test_df['prop_annotations'].values
test_annotations = list(map(lambda x: set(x), test_annotations))
go_rels.calculate_ic(annotations + test_annotations)

Expand Down

0 comments on commit 5f87260

Please sign in to comment.