Skip to content

Commit

Permalink
Fixes to integrate new regulon properties into CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cflerin committed Jan 28, 2020
1 parent ef16250 commit 11e4a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_genesig.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_intersection3():


def test_regulon():
reg = Regulon(name='TP53 regulon', gene2weight={'TP53': 0.8, 'SOX4': 0.75}, transcription_factor="TP53")
reg = Regulon(name='TP53 regulon', gene2weight={'TP53': 0.8, 'SOX4': 0.75}, transcription_factor="TP53", gene2occurrence={"TP53": 1})
assert reg.transcription_factor == "TP53"


Expand All @@ -156,7 +156,7 @@ def test_noweights():
assert gs1['TP53'] == 0.8
assert gs2['TP53'] == 1.0

reg1 = Regulon(name='TP53 regulon', gene2weight={'TP53': 0.8, 'SOX4': 0.75}, transcription_factor="TP53")
reg1 = Regulon(name='TP53 regulon', gene2weight={'TP53': 0.8, 'SOX4': 0.75}, transcription_factor="TP53", gene2occurrence={"TP53": 1})
reg2 = reg1.noweights()
assert reg1['TP53'] == 0.8
assert reg2['TP53'] == 1.0
Expand Down

0 comments on commit 11e4a6d

Please sign in to comment.