Skip to content

Commit

Permalink
removed some final commas in function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Zulkower committed Nov 6, 2024
1 parent 47e2b4f commit 3fa1029
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions dnachisel/SequencePattern/MotifPssmPattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ class MotifPssmPattern(SequencePattern):
sequence(s) with the absolute highest possible score".
"""

def __init__(
self,
pssm,
threshold=None,
relative_threshold=None,
):
def __init__(self, pssm, threshold=None, relative_threshold=None):
if not isinstance(pssm, Bio.motifs.Motif):
raise ValueError(
f"Expected PSSM type of `Bio.motifs.Motif`, but {type(pssm)} was passed"
Expand Down Expand Up @@ -74,9 +69,7 @@ def find_matches_in_string(self, sequence):
# sequence, threshold=self.threshold, both=False
# )
indices = find_pssm_matches_with_numpy(
pssm_matrix=self.pssm_matrix,
sequence=sequence,
threshold=self.threshold,
pssm_matrix=self.pssm_matrix, sequence=sequence, threshold=self.threshold
)
return [(i, i + self.size, 1) for i in indices]

Expand Down Expand Up @@ -121,9 +114,7 @@ def from_sequences(
motif.name = name
pssm = motif
return MotifPssmPattern(
pssm=pssm,
threshold=threshold,
relative_threshold=relative_threshold,
pssm=pssm, threshold=threshold, relative_threshold=relative_threshold
)

@classmethod
Expand Down Expand Up @@ -172,9 +163,7 @@ def list_from_file(

return [
MotifPssmPattern(
pssm,
threshold=threshold,
relative_threshold=relative_threshold,
pssm, threshold=threshold, relative_threshold=relative_threshold
)
for pssm in motifs_list
]
Expand Down

0 comments on commit 3fa1029

Please sign in to comment.