结果有什么不同原子.GetIdx()和规范化学()?

2024-05-28 22:57:05 发布

您现在位置:Python中文网/ 问答频道 /正文

在RDKit文档中,据说化学试剂盒化学试剂盒.GetIdx(Atom)根据分子返回原子的索引。 https://www.rdkit.org/docs/source/rdkit.Chem.rdchem.html

还有rdkit.Chem.rdmol文件.CanonicalRankAtoms(Mol-Mol)返回分子中原子的规范排序。你知道吗

https://www.rdkit.org/docs/source/rdkit.Chem.rdchem.html

我的问题是原子的标准秩和原子的指数有什么不同?事先非常感谢。你知道吗

`moleculeSmiles = "C1NCN1"
 mol1 = Chem.AddHs(Chem.MolFromSmiles(moleculeSmiles))
 rankList = list (rdmolfiles.CanonicalRankAtoms(mol1))
 atomIdxList  = []
 for atom in atomIter:
    atomIdxList.append(atom.GetIdx())   
 print (atomIdxList)
 print (rankList)`

[0,1,2,3,4,5,6,7,8,9] [8,6,9,7,2,3,0,4,5,1]


Tags: httpsorgdocssourcehtmlwww分子原子

热门问题