2023-04-23 12:54:41 +01:00
|
|
|
# obabel
|
|
|
|
|
|
|
|
> Translate chemistry-related data.
|
2024-05-28 17:25:30 +01:00
|
|
|
> More information: <https://open-babel.readthedocs.io/en/latest/Command-line_tools/babel.html>.
|
2023-04-23 12:54:41 +01:00
|
|
|
|
|
|
|
- Convert a .mol file to XYZ coordinates:
|
|
|
|
|
|
|
|
`obabel {{path/to/file.mol}} -O {{path/to/output_file.xyz}}`
|
|
|
|
|
|
|
|
- Convert a SMILES string to a 500x500 picture:
|
|
|
|
|
|
|
|
`obabel -:"{{SMILES}} -O {{path/to/output_file.png}} -xp 500`
|
|
|
|
|
|
|
|
- Convert a file of SMILES string to separate 3D .mol files:
|
|
|
|
|
|
|
|
`obabel {{path/to/file.smi}} -O {{path/to/output_file.mol}} --gen3D -m`
|
|
|
|
|
|
|
|
- Render multiple inputs into one picture:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`obabel {{path/to/file1 path/to/file2 ...}} -O {{path/to/output_file.png}}`
|