在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]
目前没有回答
相关问题 更多 >
编程相关推荐