【发布时间】:2021-03-08 17:04:21
【问题描述】:
我一直在尝试根据分子与参考分子的结构相似性来过滤分子数据库,但脚本无法正常工作,因为 od 警告“发生了异常,请使用 %tb 查看完整的回溯。”我在 vs code 中使用 jupyter notebook。
问题中的行是:
如果 len(sys.argv)!=5 :
sys.exit("用法:python tetheredMinimization.py reference.sdf output1.sdf outputtethered.sdf outputnontethered.sdf")
import sys from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import rdFMCS from rdkit.Chem.rdMolAlign import AlignMol如果 len(sys.argv)!=5 :
sys.exit("用法:python tetheredMinimization.py reference.sdf output1.sdf outputtethered.sdf outputnontethered.sdf")ratioThreshold=0.20
参考 = Chem.MolFromMolFile(sys.argv[1], removeHs=True)
配体 = Chem.SDMolSupplier(sys.argv[2],removeHs=True)w=Chem.SDWriter(sys.argv[3]) wnt=Chem.SDWriter(sys.argv[4])
【问题讨论】:
标签: python visual-studio-code jupyter-notebook rdkit