Skip to content

Commit 58908ac

Browse files
committed
add missing parameter
1 parent c64e352 commit 58908ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ms2query/data_processing/chemistry_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def compute_morgan_fingerprints(
2222
sparse: bool = True,
2323
count: bool = True,
2424
radius: int = 9,
25+
n_bits: int = 4096,
2526
progress_bar: bool = True,
2627
) -> np.ndarray:
2728
"""
@@ -39,10 +40,12 @@ def compute_morgan_fingerprints(
3940
If True, compute count-based fingerprint; else binary fingerprint.
4041
radius : int
4142
Radius for Morgan fingerprint. Default 9.
43+
n_bits : int
44+
Number of bits for the fingerprint. Default 4096.
4245
progress_bar : bool
4346
Whether to show a progress bar during computation. Default True.
4447
"""
45-
fpgen = rdFingerprintGenerator.GetMorganGenerator(radius=radius, fpSize=4096)
48+
fpgen = rdFingerprintGenerator.GetMorganGenerator(radius=radius, fpSize=n_bits)
4649

4750
if inchis and not smiles:
4851
# convert inchis to smiles

0 commit comments

Comments
 (0)