We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
示例交互代码:
""" swanlab.Molecules的逻辑是将输入转换成pdb等格式的文件,保存到日志文件夹。再在未来在前端由Three.js等库读取pdb文件,实现3D渲染生物化学分子。 """ import swanlab from rdkit import Chem swanlab.init() # 使用 SMILES 字符串创建一个 RDKit 分子对象 smiles = "CCO" # 这是乙醇的 SMILES 表达式 molecule = Chem.MolFromSmiles(smiles) # 将分子图像记录到 SwanLab # 1. from_rdkit swanlab.log({"Ethanol": swanlab.Molecule.from_rdkit(molecule)}) # 2. 直接用smiles swanlab.log({"Ethanol": swanlab.Molecule.from_smiles(smiles)}) # 3. 使用文件路径 swanlab.log({"Ethanol": swanlab.Molecule("path/to/file")})
The text was updated successfully, but these errors were encountered:
Zeyi-Lin
Successfully merging a pull request may close this issue.
示例交互代码:
The text was updated successfully, but these errors were encountered: