Skip to content

Commit e0ff89f

Browse files
author
Valentin Zulkower
committed
better fix
1 parent 3fa1029 commit e0ff89f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dnachisel/SequencePattern/MotifPssmPattern.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import Bio
21
from Bio.Seq import Seq
32
from Bio import motifs
4-
from Bio.Align.AlignInfo import PSSM
53
from .SequencePattern import SequencePattern
64
import numpy as np
75

@@ -31,7 +29,7 @@ class MotifPssmPattern(SequencePattern):
3129
"""
3230

3331
def __init__(self, pssm, threshold=None, relative_threshold=None):
34-
if not isinstance(pssm, Bio.motifs.Motif):
32+
if not isinstance(pssm, motifs.Motif):
3533
raise ValueError(
3634
f"Expected PSSM type of `Bio.motifs.Motif`, but {type(pssm)} was passed"
3735
)

0 commit comments

Comments
 (0)