Skip to content

Commit c164f8b

Browse files
authored
Merge pull request #168 from JonathanShor/pseudocount
Fix usage of pseudocount
2 parents 066d9b8 + 8526aa4 commit c164f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doubletdetection/doubletdetection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def _one_fit(self) -> tuple[NDArray, NDArray]:
291291
aug_counts = sp_sparse.vstack((self._normed_raw_counts, normed_synths))
292292
scaled_aug_counts = aug_counts * np.median(aug_lib_size)
293293
if self.pseudocount != 1:
294-
aug_counts = np.log(scaled_aug_counts.toarray() + 0.1)
294+
aug_counts = np.log(scaled_aug_counts.toarray() + self.pseudocount)
295295
else:
296296
aug_counts = np.log1p(scaled_aug_counts)
297297
del scaled_aug_counts

0 commit comments

Comments
 (0)