chemistry_tools.pubchem.compound
Attention
This package has the following additional requirements:
cawdrey>=0.1.7 mathematical>=0.1.13 pillow>=7.0.0 pyparsing>=2.4.6 tabulate>=0.8.9
These can be installed as follows:
python -m pip install chemistry-tools[pubchem]
Represents a chemical compound.
Data:
Invariant |
Classes:
|
Represents a single record from the PubChem Compound database. |
Functions:
|
-
C
= TypeVar(C, bound=Compound) Type:
TypeVar
Invariant
TypeVar
bound tochemistry_tools.pubchem.compound.Compound
.
-
class
Compound
(title, CID, description, **_)[source] Bases:
Dictable
Represents a single record from the PubChem Compound database.
The PubChem Compound database is constructed from the Substance database using a standardization and deduplication process. Each Compound is uniquely identified by a CID.
- Parameters
Methods:
__repr__
()Return a string representation of the
Compound
.from_cid
(cid[, record_type])Returns the Compound objects for the compound with the given CID.
get_iupac_name
([type_])Return the IUPAC name of this compound.
get_properties
(properties)Returns the requested properties for the Compound.
get_property
(prop)Get a single property for the compound.
precache
()Precache all properties for this compound.
Return a pandas
Series
containing Compound data.Attributes:
List of
Atoms
in this Compound.PubChem CACTVS fingerprint.
Canonical SMILES, with no stereochemistry information.
Whether the compound is canonicalized.
The charge of the compound.
Returns the ID of this compound.
The coordinate type of this compound.
List of element symbols for atoms in this Compound.
Raw padded and hex-encoded fingerprint, as returned by the PUG REST API.
Returns whether this compound has a full record available.
The preferred IUPAC name of this compound.
Molecular formula.
Molecular Weight.
Molecular Weight.
Canonical SMILES, with no stereochemistry information.
Returns a list of synonyms for the Compound.
The systematic IUPAC name of this compound.
-
property
cactvs_fingerprint
PubChem CACTVS fingerprint.
Each bit in the fingerprint represents the presence or absence of one of 881 chemical substructures.
-
property
fingerprint
Raw padded and hex-encoded fingerprint, as returned by the PUG REST API.
-
classmethod
from_cid
(cid, record_type='2d')[source] Returns the Compound objects for the compound with the given CID.
- Return type
-
get_properties
(properties)[source] Returns the requested properties for the Compound.
- Parameters
properties (
Union
[Sequence
[str
],str
]) – The properties to retrieve for the compound. Can be either a comma-separated string or a list. See the table at the start of this chapter for a list of valid properties.- Return type
- Returns
Dictionary mapping the property names to their values
-
get_property
(prop)[source] Get a single property for the compound.
- Parameters
prop (
str
) – The property to retrieve for the compound. See the table at the start of this chapter for a list of valid properties.- Return type
-
property
has_full_record
Returns whether this compound has a full record available.
- Return type