Skip to content

Commit

Permalink
Correct Lin similarity
Browse files Browse the repository at this point in the history
Removed negation in Lin similarity measure.
  • Loading branch information
alex-wave committed Feb 21, 2019
1 parent 8269c2c commit a67d1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goatools/semantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def lin_sim_calc(goid1, goid2, sim_r, termcnts):
if sim_r is not None:
info = get_info_content(goid1, termcnts) + get_info_content(goid2, termcnts)
if info != 0:
return (-2*sim_r)/info
return (2*sim_r)/info


def common_parent_go_ids(goids, godag):
Expand Down

0 comments on commit a67d1ab

Please sign in to comment.