pypath.inputs.pubchem.pubchem_mapping§

pypath.inputs.pubchem.pubchem_mapping(target, source='cid')[source]§

Identifier translation data from PubChem.

Args
target (str): The target ID type, either as it is used in the file

names in the PubChem FTP service or as simpler, all lowercase strings used in this module. Possible values are parent-cid, component-cid, inchi, iupac, preferred-cid, sid, smiles, synonym.

source (str): The source ID type. Either sid or cid.

Returns
(dict): A dict of sets with the source identifiers as keys and sets

of target identifiers as values.