QuantumChemistry
MolecularData
returns the geometry or the 2D chemical structure of a molecule
Calling Sequence
Parameters
Description
References Examples
MolecularData(molecule, output, options)
molecule
-
string, integer; name of the molecule as a string, CID number as an integer, or SMILES formula (see below for format)
output
string; either "geometry3d", "image2d", or "dictionary"
options
(optional) equation(s) of the form option = value where option is one of returnbonds
MolecularData(molecule,output) returns the geometry or the 2D chemical structure of a molecule.
The molecule can be a name, CID number, or SMILES formula in the format "smiles=formula".
If the output is "geometry3d", then MolecularData returns the molecular geometry as a Maple list of lists in the standard molecular geometry format of the QuantumChemistry package.
If the output is "image2d", then MolecularData returns an image of the 2D chemical structure.
If the output is "dictionary", then MolecularData returns a dictionary entry for the molecule.
Geometries and structures are retrieved from a web database. A connection to the internet is required. Currently, the procedure has access to over 96 million molecules contained in the PubChem database.
The standard geometry format of the QuantumChemistry package is a Maple list of lists in which each list has 4 elements, the string of an atom's symbol and atom's x, y, and z coordinates.
The optional keyword returnbonds can be set to true or false (default). If set to true with "geometry3d", MolecularData returns two variables as a sequence : (1) the molecule's geometry as a list of lists and (2) the bonds of the molecule as a set of sets where each set contains two integers denoting the atoms to be connected by a chemical bond. The integers correspond to the positions of the atoms in the output list of the molecule's geometry.
References
Kim S, Chen J, Cheng T, Gindulyte A, He J, He S, Li Q, Shoemaker BA, Thiessen PA, Yu B, Zaslavsky L, Zhang J, Bolton EE. PubChem 2023 update. Nucleic Acids Res. 2023 Jan 6;51(D1):D1373-D1380. doi:10.1093/nar/gkac956. PMID: 36305812.
Examples
with⁡QuantumChemistry:
molecule ≔ MolecularDatatylenol,geometry3d;
molecule≔O,3.85090000,0.45160000,0.00120000,O,−2.59990000,1.40410000,−0.00180000,N,−1.57050000,−0.71710000,0.00010000,C,−0.20660000,−0.42310000,−0.00020000,C,0.22050000,0.90470000,0.00040000,C,0.72980000,−1.45700000,−0.00070000,C,1.58410000,1.19860000,0.00020000,C,2.09330000,−1.16290000,−0.00070000,C,2.52040000,0.16480000,−0.00030000,C,−2.64850000,0.17820000,0.00090000,C,−3.97350000,−0.54200000,0.00100000,H,−0.44360000,1.75770000,0.00120000,H,0.41130000,−2.49630000,−0.00100000,H,−1.80100000,−1.70860000,0.00010000,H,1.90530000,2.23700000,0.00090000,H,2.81800000,−1.97260000,−0.00080000,H,−4.06550000,−1.14630000,−0.90580000,H,−4.79040000,0.18440000,0.02880000,H,−4.04450000,−1.18860000,0.88020000,H,3.96500000,1.41760000,0.00170000
MolecularDatatylenol,image2d;
MolecularDatatylenol,dictionary;
Acetaminophen: Paracetamol is a member of the class of phenols that is 4-aminophenol in which one of the hydrogens attached to the amino group has been replaced by an acetyl group. It has a role as a cyclooxygenase 2 inhibitor, a cyclooxygenase 1 inhibitor, a non-narcotic analgesic, an antipyretic, a non-steroidal anti-inflammatory drug, a cyclooxygenase 3 inhibitor, a xenobiotic, an environmental contaminant, a human blood serum metabolite and a hepatotoxic agent. It is a member of phenols and a member of acetamides. It derives from a 4-aminophenol. -ChEBI Acetaminophen: Acetaminophen is a p-aminophenol derivative with analgesic and antipyretic activities. Although the exact mechanism through which acetaminophen exert its effects has yet to be fully determined, acetaminophen may inhibit the nitric oxide (NO) pathway mediated by a variety of neurotransmitter receptors including N-methyl-D-aspartate (NMDA) and substance P, resulting in elevation of the pain threshold. The antipyretic activity may result from inhibition of prostaglandin synthesis and release in the central nervous system (CNS) and prostaglandin-mediated effects on the heat-regulating center in the anterior hypothalamus. -NCI Thesaurus (NCIt)
molecule,bonds ≔ MolecularDatatylenol,geometry3d,returnbonds=true;
molecule,bonds≔O,3.85090000,0.45160000,0.00120000,O,−2.59990000,1.40410000,−0.00180000,N,−1.57050000,−0.71710000,0.00010000,C,−0.20660000,−0.42310000,−0.00020000,C,0.22050000,0.90470000,0.00040000,C,0.72980000,−1.45700000,−0.00070000,C,1.58410000,1.19860000,0.00020000,C,2.09330000,−1.16290000,−0.00070000,C,2.52040000,0.16480000,−0.00030000,C,−2.64850000,0.17820000,0.00090000,C,−3.97350000,−0.54200000,0.00100000,H,−0.44360000,1.75770000,0.00120000,H,0.41130000,−2.49630000,−0.00100000,H,−1.80100000,−1.70860000,0.00010000,H,1.90530000,2.23700000,0.00090000,H,2.81800000,−1.97260000,−0.00080000,H,−4.06550000,−1.14630000,−0.90580000,H,−4.79040000,0.18440000,0.02880000,H,−4.04450000,−1.18860000,0.88020000,H,3.96500000,1.41760000,0.00170000,1,9,1,20,2,10,3,4,3,10,3,14,4,5,4,6,5,7,5,12,6,8,6,13,7,9,7,15,8,9,8,16,10,11,11,17,11,18,11,19
nicotine ≔ MolecularDatasmiles=CN1CCC[C@H]1c2cccnc2,geometry3d;
nicotine≔N,−1.70230000,−0.79620000,−0.03390000,N,2.29680000,−0.70910000,1.21710000,C,−0.88460000,0.30950000,−0.57130000,C,−1.49550000,1.58240000,0.04360000,C,−2.68570000,1.09840000,0.85960000,C,−3.02810000,−0.23820000,0.23290000,C,0.58720000,0.15440000,−0.25130000,C,−1.76180000,−1.95030000,−0.92170000,C,1.55690000,0.70250000,−1.07910000,C,1.00080000,−0.53570000,0.87380000,C,2.90090000,0.54510000,−0.75930000,C,3.21560000,−0.16270000,0.38950000,H,−1.00840000,0.36650000,−1.66240000,H,−1.84540000,2.24560000,−0.75710000,H,−0.80180000,2.15280000,0.67090000,H,−2.38960000,0.96500000,1.90760000,H,−3.52200000,1.80290000,0.82930000,H,−3.60940000,−0.86620000,0.91510000,H,−3.60210000,−0.08800000,−0.69030000,H,−2.36430000,−2.74600000,−0.46980000,H,−0.76270000,−2.36680000,−1.08850000,H,−2.19750000,−1.70360000,−1.89650000,H,1.27980000,1.25440000,−1.97280000,H,0.30270000,−0.97780000,1.57700000,H,3.67750000,0.96380000,−1.38900000,H,4.24910000,−0.31340000,0.68330000
MolecularDatasmiles=CN1CCC[C@H]1c2cccnc2,image2d;
MolecularDatasmiles=CN1CCC[C@H]1c2cccnc2,dictionary;
Nicotine: (S)-nicotine is a 3-(1-methylpyrrolidin-2-yl)pyridine in which the chiral centre has S-configuration. The naturally occurring and most active enantiomer of nicotine, isolated from Nicotiana tabacum. It has a role as a phytogenic insecticide, a teratogenic agent, a neurotoxin, an anxiolytic drug, a nicotinic acetylcholine receptor agonist, a biomarker, an immunomodulator, a mitogen, a peripheral nervous system drug, a psychotropic drug, a plant metabolite and a xenobiotic. It is a conjugate base of a (S)-nicotinium(1+). It is an enantiomer of a (R)-nicotine. -ChEBI
See Also
PlotMolecule ReadXYZ MolecularGeometry SkeletalStructure MolecularDictionary
Download Help Document