Skip to content

Commit

Permalink
feat: jit cache
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Jul 18, 2024
1 parent a709509 commit 3d5ff0d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pydamage/rescale.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
from array import array
from pydamage.models import damage_model
from tqdm import tqdm
from numba import njit
from numba import jit


@njit(parallel=True)
@jit(
cache=True,
fastmath=True,
)
def phred_to_prob(qual):
"""Convert Phred quality score to probability
Expand All @@ -19,7 +22,10 @@ def phred_to_prob(qual):
return 10 ** (-qual / 10)


@njit(parallel=True)
@jit(
cache=True,
fastmath=True,
)
def compute_new_prob(e, d):
"""Compute new probability of base calling error accounting for ancient damage
Expand Down

0 comments on commit 3d5ff0d

Please sign in to comment.