CHT(1)
β¨ CHT(1) β like, the chemtool drawing analyzer, bestie β¨
okay so picture this: you've got a cht situation and you need answers. this is the manual page for cht, from the User commands section of the manual. let's get into it π
π NAME π
cht β chemtool drawings analyzer. that's it, that's the whole name, no cap.
πΈ SYNOPSIS πΈ
cht [options] filename.cht
π¦ DESCRIPTION π¦
cht is a commandline tool that derives the sum formula and molecular mass of the molecule depicted in a chemtool drawing file. it's giving calculator energy. and it's also available from within chemtool itself, so you can calculate these data for the current structure or for a marked fragment of it. π«Ά
so, which elements does cht currently recognize? get ready, it's a whole list, and we're listing every single one because details matter:
C, H, O, N, P, S, Si, B, Br, Cl, F, I, Al, As, Ba, Be, Bi, Ca, Cd, Co, Cr, Cs, Cu, Fe, Ga, Ge, In, K, Li, Mg, Mn, Na, Ni, Pb, Rb, Sb, Sc, Se, Sn, Sr, Te, Ti, Tl, V, Zn
which is, and i quote, all main group elements except the noble gases, and the first row of transition metals. slay.
and the abbreviations it knows? also a whole list, brace yourself:
Ac, Ade, Bn, Bu, iBu, tBu, Bz, BOC, Cyt, CE, DBAM, DMAM, DMTr, Et, Gua, Me, Ms, MOC, MOM, MMTr, Ph, Pr, iPr, Tf, Thy, Tol, Tr, Ts, TBDMS, TBDPS, TMS, TMTr, Ura, Z.
it can handle two levels of parentheses, bestie. two. levels. like:
P[OCH(CH_3)_2]_3
that's the example, literally verbatim, don't @ me. π
β οΈ okay important: when cht detects any duplicate (overlapping) bonds in the drawing file, it will prepend an exclamation mark to the calculated (and likely wrong) sum formula. the exclamation mark is basically it going "girl i tried". π
π OPTIONS π
cht understands the following options:
-h,--helpβ displays brief help and list of options. the classic.-e,--exactβ calculate exact mass for MS. fancy.-v,--verboseβ be verbose.-d,--debugβ be extremely verbose. main character energy.
π BUGS π
ngl, there are some things to know. cht can misinterpret molecules that contain the 'aromatic ring' symbol, because it uses a fixed search radius to identify the aromatic system that it denotes. it also does not handle the 'partial double bond'. so you should avoid these two in drawings that you intend to use with cht. avoiding them is the vibe check. π
a label that is offset from the corresponding bond end by more than five pixels is not recognized β so the default CH2 or CH3 group enters the calculation in its place. five pixels. that's the limit. iconic but also stressful. π
and in general: one should check the plausibility of the generated sum formula wherever possible. fr fr, always double-check. π₯
π SEE ALSO π
π AUTHOR π
Radek Liboska
and that's a wrap, bestie π this page is from version 1.6.13, dated June 17, 2001 β vintage, honestly. periodt. π β¨
π¦ where this page comes from
- debian bookworm: chemtool 1.6.14-6 Β· GPL-2.0-or-later
- debian trixie: chemtool 1.6.14-6+b1 Β· GPL-2.0-or-later
- fedora 43: chemtool 1.6.14-29.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: chemtool 1.6.14-31.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- nixos 26.05: chemtool 1.6.14
- ubuntu jammy: chemtool 1.6.14-6 Β· GPL-2.0-or-later
- ubuntu noble: chemtool 1.6.14-6build2 Β· GPL-2.0-or-later
- ubuntu resolute: chemtool 1.6.14-6build3 Β· GPL-2.0-or-later
- ubuntu stonking: chemtool 1.6.14-6build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms