Skip to content

Commit 3fa1029

Browse files
author
Valentin Zulkower
committed
removed some final commas in function parameters
1 parent 47e2b4f commit 3fa1029

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

dnachisel/SequencePattern/MotifPssmPattern.py

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ class MotifPssmPattern(SequencePattern):
3030
sequence(s) with the absolute highest possible score".
3131
"""
3232

33-
def __init__(
34-
self,
35-
pssm,
36-
threshold=None,
37-
relative_threshold=None,
38-
):
33+
def __init__(self, pssm, threshold=None, relative_threshold=None):
3934
if not isinstance(pssm, Bio.motifs.Motif):
4035
raise ValueError(
4136
f"Expected PSSM type of `Bio.motifs.Motif`, but {type(pssm)} was passed"
@@ -74,9 +69,7 @@ def find_matches_in_string(self, sequence):
7469
# sequence, threshold=self.threshold, both=False
7570
# )
7671
indices = find_pssm_matches_with_numpy(
77-
pssm_matrix=self.pssm_matrix,
78-
sequence=sequence,
79-
threshold=self.threshold,
72+
pssm_matrix=self.pssm_matrix, sequence=sequence, threshold=self.threshold
8073
)
8174
return [(i, i + self.size, 1) for i in indices]
8275

@@ -121,9 +114,7 @@ def from_sequences(
121114
motif.name = name
122115
pssm = motif
123116
return MotifPssmPattern(
124-
pssm=pssm,
125-
threshold=threshold,
126-
relative_threshold=relative_threshold,
117+
pssm=pssm, threshold=threshold, relative_threshold=relative_threshold
127118
)
128119

129120
@classmethod
@@ -172,9 +163,7 @@ def list_from_file(
172163

173164
return [
174165
MotifPssmPattern(
175-
pssm,
176-
threshold=threshold,
177-
relative_threshold=relative_threshold,
166+
pssm, threshold=threshold, relative_threshold=relative_threshold
178167
)
179168
for pssm in motifs_list
180169
]

0 commit comments

Comments
 (0)