entropy-of-formation-predict

star 24

预测分子的生成熵

golab-ai By golab-ai schedule Updated 3/26/2026

name: entropy-of-formation-predict description: 预测分子的生成熵 license: Proprietary. LICENSE.txt has complete terms

Overview

When given a compound, predict its entropy of formation.

Arguments

参数名 类型 必填 描述
smiles string SMILES字符串或包含SMILES的文件路径(通过标准输入传递)
output string 输出文件路径,不指定时:单条SMILES输出到终端,CSV文件写回原文件
smiles-column string CSV文件中SMILES列的名称,不指定时自动检测
batch-size integer 推理批处理大小,默认32
device string 推理设备:auto, cpu, cuda,默认auto

执行

方法一:通过标准输入传递SMILES或文件路径

cd skills/entropy_of_formation && python entropy_of_formation_predict.py

运行后输入 SMILES 字符串或文件路径。

方法二:通过管道传递SMILES或文件路径

# 直接预测单个SMILES的生成熵
echo "CCO" | cd skills/entropy_of_formation && python entropy_of_formation_predict.py

# 批量预测CSV文件中所有SMILES的生成熵
echo "path/to/smiles.csv" | cd skills/entropy_of_formation && python entropy_of_formation_predict.py

可选参数

cd skills/entropy_of_formation && python entropy_of_formation_predict.py [--smiles-column COLUMN] [--batch-size SIZE] [--device {auto,cpu,cuda}] [--output OUTPUT_FILE]

示例

# 直接预测CCO的生成熵
echo "CCO" | python entropy_of_formation_predict.py

# 从csv文件批量预测生成熵(相对路径)
echo "../../entropy_of_formation.csv" | python entropy_of_formation_predict.py

# 从csv文件批量预测生成熵(绝对路径)
echo "D:/PythonProjects/skills_test/entropy_of_formation.csv" | python entropy_of_formation_predict.py

# 指定输出文件
echo "smiles.csv" | python entropy_of_formation_predict.py --output predictions.csv

输出格式

  • 单条 SMILES: 输出 JSON 格式的预测结果
  • CSV 文件: 在原文件基础上追加 value 列,包含预测的结果
Install via CLI
npx skills add https://github.com/golab-ai/Huntianling --skill entropy-of-formation-predict
Repository Details
star Stars 24
call_split Forks 4
navigation Branch main
article Path SKILL.md
More from Creator