RDkit: smiles 转化inche, inchikey

原网址链接:http://rdkit.org/docs/source/rdkit.Chem.inchi.html
rdkit.Chem.inchi module
rdkit.Chem.inchi.MolToInchiAndAuxInfo(mol, options=’’, logLevel=None, treatWarningAsError=False)
Returns the standard InChI string and InChI auxInfo for a molecule

Keyword arguments: logLevel – the log level used for logging logs and messages from InChI API. set to None to diable the logging completely treatWarningAsError – set to True to raise an exception in case of a molecule that generates warning in calling InChI API. The resultant InChI string and AuxInfo string as well as the error message are encoded in the exception.

Returns: a tuple of the standard InChI string and the auxInfo string returned by InChI API, in that order, for the input molecule

rdkit.Chem.inchi.MolToInchi(mol, options=’’, logLevel=None, treatWarningAsError=False)
Returns the standard InChI string for a molecule

Keyword arguments: logLevel – the log level used for logging logs and messages from InChI API. set to None to diable the logging completely treatWarningAsError – set to True to raise an exception in case of a molecule that generates warning in calling InChI API. The resultant InChI string and AuxInfo string as well as the error message are encoded in the exception.

Returns: the standard InChI string returned by InChI API for the input molecule

rdkit.Chem.inchi.MolBlockToInchiAndAuxInfo(molblock, options=’’, logLevel=None, treatWarningAsError=False)
Returns the standard InChI string and InChI auxInfo for a mol block

Keyword arguments: logLevel – the log level used for logging logs and messages from InChI API. set to None to diable the logging completely treatWarningAsError – set to True to raise an exception in case of a molecule that generates warning in calling InChI API. The resultant InChI string and AuxInfo string as well as the error message are encoded in the exception.

Returns: a tuple of the standard InChI string and the auxInfo string returned by InChI API, in that order, for the input molecule

rdkit.Chem.inchi.MolBlockToInchi(molblock, options=’’, logLevel=None, treatWarningAsError=False)
Returns the standard InChI string for a mol block

Keyword arguments: logLevel – the log level used for logging logs and messages from InChI API. set to None to diable the logging completely treatWarningAsError – set to True to raise an exception in case of a molecule that generates warning in calling InChI API. The resultant InChI string and AuxInfo string as well as the error message are encoded in the exception.

Returns: the standard InChI string returned by InChI API for the input molecule

rdkit.Chem.inchi.MolFromInchi(inchi, sanitize=True, removeHs=True, logLevel=None, treatWarningAsError=False)
Construct a molecule from a InChI string

Keyword arguments: sanitize – set to True to enable sanitization of the molecule. Default is True removeHs – set to True to remove Hydrogens from a molecule. This only makes sense when sanitization is enabled logLevel – the log level used for logging logs and messages from InChI API. set to None to diable the logging completely treatWarningAsError – set to True to raise an exception in case of a molecule that generates warning in calling InChI API. The resultant molecule and error message are part of the excpetion

Returns: a rdkit.Chem.rdchem.Mol instance

exception rdkit.Chem.inchi.InchiReadWriteError
Bases: Exception

rdkit.Chem.inchi.InchiToInchiKey(inchi)
Return the InChI key for the given InChI string. Return None on error

rdkit.Chem.inchi.MolToInchiKey(mol, options=’’)
Returns the standard InChI key for a molecule

Returns: the standard InChI key returned by InChI API for the input molecule

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值