Skip to content

Commit

Permalink
fix: damage test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Jul 16, 2024
1 parent d5ff542 commit 7b1dafe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_damage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def bamfile():
def test_al_to_damage(bamfile):
from pydamage.damage import al_to_damage

al = al_to_damage(reference="NZ_JHCB02000002.1", al_handle=bamfile, wlen=20)
al = al_to_damage(
reference="NZ_JHCB02000002.1", al_handle=bamfile, wlen=20, g2a=False
)
al.get_damage(show_al=False)

assert al.C[:10] == [7, 11, 18, 2, 18, 9, 7, 11, 15, 4]
Expand Down Expand Up @@ -68,14 +70,15 @@ def test_check_model_fit():
def test_test_damage():
from pydamage.damage import test_damage

dam = test_damage(
dam, read_dict = test_damage(
ref="NZ_JHCB02000002.1",
bam="tests/data/aligned.bam",
mode="rb",
show_al=False,
wlen=20,
process=1,
verbose=False,
g2a=False,
)
assert dam["CtoT-0"] == pytest.approx(0.13043478260869565)

Expand Down

0 comments on commit 7b1dafe

Please sign in to comment.