본문으로 건너뛰기
cccskills
무료GitHub에 공개

openbabel

Convert molecular file formats using Open Babel. Handles SMILES, mol2, sdf, pdb, xyz, cif, and 100+ other formats. Also performs 3D coordinate generation and hydrogen addition.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG스타 208(GitHub 208 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Open Babel — Molecular Format Conversion

When to Use

  • User needs to convert between molecular file formats (SMILES, mol2, sdf, pdb, xyz, cif)
  • User wants to generate 3D coordinates from SMILES
  • User needs to add/remove hydrogens
  • User wants to perceive bond orders from a 3D structure
  • User needs canonical SMILES or InChI identifiers

Prerequisites

  1. Open Babel installed (obabel -V)
  2. For Python scripting: openbabel or openbabel-wheel package

Workflow Steps — CLI

Convert between formats

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "convert_format",
  "command": "obabel input.mol2 -O output.pdb",
  "system_name": "format_convert"
})

Common CLI Commands

SMILES to 3D structure

obabel -:"CCO" -O ethanol.xyz --gen3d
# Generates 3D coordinates using force field optimization

Add hydrogens

obabel input.pdb -O output.pdb -h
# -h adds hydrogens at pH 7.4

Remove hydrogens

obabel input.pdb -O output.pdb -d

Batch conversion

obabel *.mol2 -O output_.pdb -m
# -m produces one output file per input molecule

Generate conformers

obabel input.sdf -O conformers.sdf --conformer --nconf 50 --writeconformers

Get canonical SMILES

obabel input.mol2 -O output.smi -ocan

Energy minimization

obabel input.xyz -O minimized.xyz --minimize --ff MMFF94 --steps 2500

Supported Formats (most common)

FormatExtensionNotes
SMILES.smi1D string representation
SDF/MOL.sdf, .mol2D/3D with bond orders
PDB.pdbProtein Data Bank format
MOL2.mol2Tripos format with charges
XYZ.xyzSimple Cartesian coordinates
CIF.cifCrystallographic Information File
CML.cmlChemical Markup Language
InChI-IUPAC identifier (use -oinchi)
POSCAR.vaspVASP structure (limited support)
GJF/COM.gjf, .comGaussian input

Python API

from openbabel import openbabel as ob

conv = ob.OBConversion()
conv.SetInFormat("smi")
conv.SetOutFormat("mol2")

mol = ob.OBMol()
conv.ReadString(mol, "c1ccccc1")  # benzene

# Generate 3D
builder = ob.OBBuilder()
builder.Build(mol)

# Force field optimization
ff = ob.OBForceField.FindForceField("MMFF94")
ff.Setup(mol)
ff.ConjugateGradients(500)
ff.GetCoordinates(mol)

conv.WriteFile(mol, "benzene.mol2")

Parameter Guidance

FlagPurpose
--gen3dGenerate 3D coordinates from 2D/SMILES
-hAdd hydrogens
-dDelete hydrogens
--minimizeEnergy minimization with force field
--ff MMFF94Force field: MMFF94, UFF, Ghemical
-mMultiple output files (one per molecule)
--conformerConformer search
-ocanOutput canonical SMILES

Common Pitfalls

  1. No 3D coordinates from SMILES — SMILES are 1D strings. Use --gen3d to create 3D structures.
  2. Bond order loss — XYZ format has no bond information. Converting xyz to mol2 requires bond perception (-b flag).
  3. Wrong protonation — default -h adds H at pH 7.4. Specify pH with -p <pH> if needed.
  4. Large molecule conformers — --gen3d gives one conformation. For proper conformer sampling, use RDKit (molecular/rdkit/SKILL.md).
  5. Periodic structures — Open Babel's support for periodic systems (CIF/POSCAR) is limited. Use pymatgen or ASE for crystals.
  6. Force field coverage — MMFF94 covers organic molecules well but may not have parameters for transition metals.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

abinit

무료

Generate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Use when the user asks to place an adsorbate molecule on a surface, find adsorption sites, or set up a surface+adsorbate model for DFT.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Use when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Use when the user asks to analyze computational results: Gibbs free energy, OER/HER/CO2RR overpotentials, adsorption energy, convergence tests, DOS/d-band analysis, or Bader charge analysis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Use AmberTools antechamber for molecular force field parameterization. Generates GAFF/GAFF2 parameters and AM1-BCC or RESP charges for use in AMBER or LAMMPS classical MD simulations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

atom-ops

무료

One-shot recipes for adding, deleting, moving, and replacing individual atoms in the active CatGo viewer structure. Use whenever the user asks to "add an atom", "delete atoms", "remove this atom", "move atom N", "replace H with Li", or any single-atom edit — including "add a hydrogen on top of atom 12" / "delete atoms 5–9" / "swap the oxygen at site 3 for fluorine". Skips the discovery loop (no need to list structure tools or check adsorption sites first); goes straight to the matching `catgo_structure` action. Triggers in Chinese on 加原子, 删原子, 减原子, 移动原子, 替换原子, 增加氢, 删除氧, 把 ... 换成 ....

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Hello-QM/catgo-LRG2082026년 10월 23일 업데이트

Hello-QM의 스킬 모두 보기

이 스킬의 문제 신고