MCTC-CONVERT(1)
π mctc-convert β the manual page, but make it cute β¨
okay so bestie, welcome to mctc-convert(1) β the little glow-up tool from the tool chain library that converts your structure files between every format we support. no cap. let's get into it π
β¨ NAME β¨
mctc-convert β converts between all the supported input formats of the tool chain library π¦
πΈ SYNOPSIS πΈ
mctc-convert [options] input output
π DESCRIPTION π
okay so here's the vibe: it reads a structure from the input file and writes it straight to the output file. how does it know which format is which? bestie, it figures it out from the file extension or from a format hint. iykyk.
and the cute part π β you can read the input structure from standard input by passing - as the argument. and yeah, you can also write the output structure to standard output the same way, with - as the argument. just pls pls pls combine standard input and standard output with a format hint option, otherwise it's giving chaos.
π Supported formats π
- Xmol/xyz files (
xyz,log) β the classic β¨ - Turbomole's
coord, riper's periodiccoord(tmol,coord) - DFTB+ genFormat geometry inputs (
gen) β as cluster, supercell or fractional π - VASP's POSCAR/CONTCAR input files (
vasp,poscar,contcar) - Protein Database files (
pdb) β only single files, no multi-file shenanigans - Connection table files β molfile (
mol) and structure data format (sdf) - Gaussian's external program input (
ein) - JSON input (
json) β withqcschema_moleculeorqcschema_inputstructure - Chemical JSON input (
cjson) - FHI-AIMS' input files (
geometry.in) - Q-Chem molecule block inputs (
qchem)
π OPTIONS π
-i,--inputformat β a hint for what format the input file is in π«Ά-o,--outputformat β a hint for what format the output file is in β¨--normalizeβ normalizes every element symbol to capitalized format. so like,clbecomesCl, periodt π--templatefile β the file to use as a template for filling in meta data (super useful if you wanna add back your SDF or PDB annotions π). it transfers lattice, periodicity, comments and format specific annotations from the template over to the input structure. and listen β if the standard input,-, is provided, the template structure gets read before the input structure. order matters bestie π₯--template-formatformat β a hint for the format of the template file (only used if a template file name is actually provided, no cap)--ignore-dot-filesβ do not read charge and spin from the.CHRGand.UHFfiles π--versionβ prints the program version and dips out π--helpβ shows this help message πΈ
π real talk: the <pink>--template</pink> option eats the template structure before your input structure when you're piping from stdin. just so you're not out here surprised. main character energy requires reading the docs, bestie.
okay that's the whole page!! you're literally so good at this now, obsessed ππ
mctc-convert β from the tool chain library, this version dated 2025-07-24. go convert something iconic, bestie ππ¦β¨
π¦ where this page comes from
- fedora 43: mctc-lib 0.3.2-3.fc43 Β· Apache-2.0
- fedora 43: mctc-lib 0.3.2-3.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms