Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vicpaton committed Jul 4, 2024
1 parent 92c9924 commit bfbb5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkcommons/data/network/_omnipath.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_omnipath(genesymbols: bool = True, directed_signed: bool = True):
) &
(network['curation_effort'] >= 2)]

network['sign'] = np.where(network['consensus_stimulation'] is True, 1, -1)
network['sign'] = np.where(network['consensus_stimulation'], 1, -1)

# write the resulting omnipath network in networkx format
network = network[['source', 'target', 'sign']].reset_index(drop=True)
Expand Down

0 comments on commit bfbb5dd

Please sign in to comment.