Skip to content

Commit

Permalink
docs: fix rdkit_wrapper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohulan authored Feb 29, 2024
1 parent b90206d commit b07938e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/modules/toolkits/rdkit_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ def get_tanimoto_similarity_rdkit(
Args:
mol1 (Chem.Mol): The RDKit Mol object representing the first molecule.
mol2 (Chem.Mol): The RDKit Mol object representing the second molecule.
fingerprinter (str, optional): The type of fingerprint to use. Defaults to "ECFP".
diameter (int, optional): The diameter parameter for Morgan fingerprints to use ECFP it it divided by half. Ignored for other fingerprint types. Defaults to 2.
nBits (int, optional): The number of bits for fingerprint vectors. Defaults to 2048. Ignored for MACCS keys.
fingerprinter (str, optional): The type of fingerprint to use. Options are "ECFP", "RDKit", "AtomPairs", "MACCS". Defaults to "ECFP".
diameter (int, optional): The diameter parameter for ECFP fingerprints (e.g. diameter 2 for generating ECFP2 fingerprints, default value).
Internally, it is divided by 2 to get the radius as input for the RDKit Morgan fingerprinter.
Ignored for all other fingerprinter options than "ECFP".
Returns:
Union[float, str]: The Tanimoto similarity index between the two molecules if they are valid. If molecules are not valid, returns a string indicating an error.
Expand Down

0 comments on commit b07938e

Please sign in to comment.