Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
swanlab.Molecule 类
swanlab.Molecule
类的目标是提供一系列数据处理方法,用于预处理和转换三种类型的输入数据:支持的输入类型
rdkit.Chem.rdchem.Mol
对象。处理规则
str
,io
swanlog
目录下Molecule(data)
"rdkit.Chem.rdchem.Mol"
swanlog
目录下Molecule.from_rakit(data)
str
Molecule.from_rakit
处理Molecule.from_smiles(data)
思维导图
功能实现
当
Molecule
实例被swanlab.log()
调用时,它会执行上述的处理流程(pipeline),并将结果保存到swanlog
文件夹下,以便前端显示。测试代码
如需测试rdkit,需要安装该pypi库:
下载PDB文件:
5p21.pdb.zip
测试代码如下:
在
swanlog
下的保存结果:Closes: #476