Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

MoleculeFingerprints

Guides

  • Molecule Fingerprints

Tech Notes

  • Substructure Screening

Symbols

  • AtomPairFingerprint
  • ExtendedConnectivityFingerprint
  • LayeredFingerprint
  • MACCSKeysFingerprint
  • MoleculeDistanceMatrix
  • MoleculeDistance
  • MoleculeNearest
  • PatternFingerprint
  • SubstructureKeyFingerprint
  • TopologicalFingerprint
  • $DefaultFingerprintFormat
  • $DefaultFingerprintType
WolframChemistry`MoleculeFingerprints`
MoleculeNearest
​
MoleculeNearest
[mols,mol]
gives a list list of the molecules nearest to
mol
.
​
​
MoleculeNearest
[mols,mol,n]
give the
n
molecules nearest to
mol
.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Import 10K molecules from a SMILES file:
In[1]:=
mols=Import[PacletObject["WolframChemistry/MoleculeFingerprints"]["AssetLocation","SMILES strings for 100K molecules from ChEMBL"],{"Molecule",;;10000}];
Find the nearest molecule to a target molecule using the default fingerprint and distance metric:
In[2]:=
MoleculeNearest
mols,Molecule
Formula:
+
C
21
H
26
N
O
3
Atoms:
51
Bonds:
53

Out[2]=
Find the five nearest molecules:
In[3]:=
MoleculeNearest
mols,Molecule
Formula:
+
C
24
H
31
O
5
Atoms:
60
Bonds:
62
,5
Out[3]=
Contents cannot be rendered at this time; please try again later
Use a different fingerprint type and distance metric:
In[4]:=
MoleculeNearest
mols,Molecule
Formula:
C
20
H
14
O
3
Atoms:
37
Bonds:
41
,5,"FingerprintType"
AtomPairFingerprint
["CountVector"],DistanceFunctionDiceDissimilarity
Out[4]=
Contents cannot be rendered at this time; please try again later
SeeAlso
MoleculeDistance
 
▪
MoleculeDistanceMatrix
 
▪
Molecule
 
▪
ExtendedConnectivityFingerprint
RelatedGuides
▪
Molecule Fingerprints
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com