CIF_SPLIT_PRIMITIVE(1)
π cif_split_primitive β bestie's guide to splitting CIF files π
okay so listen, this is cif_split_primitive from section 1 of the General Commands Manual, and she does exactly one thing but she does it with main character energy: she takes your CIF files and splits them up so every output file has one single data_ section. one. not two. not five. one. periodt. β¨
πΈ NAME πΈ
cif_split_primitive β split CIF files into separate files with one data_ section each. This is a very naive and primitive version of the splitter, which expects each data_... section to start on a new line. It may fail on some CIF files that do not follow such convention. For splitting of any correctly formatted CIF files, one must do full CIF parsing using CIF grammar and tokenisation of the file.
π«Ά yes bestie, she's primitive and she's naive and she said it herself. she is not out here doing real parsing. she is out here vibing with line breaks. if your CIF file doesn't put every data_... on its own fresh new line, she might just π« fail. that's canon, not shade.
β¨ SYNOPSIS β¨
cif_split_primitive --options input1.cif input*.cif
π¦ DESCRIPTION π¦
Split CIF files into separate files with one data_ section each. that's the whole job. that's the assignment. she ate. π
This is a very naive and primitive version of the splitter, which expects each data_... section to start on a new line. It may fail on some CIF files that do not follow such convention. For splitting of any correctly formatted CIF files, one must do full CIF parsing using CIF grammar and tokenisation of the file.
π ngl the "may fail" part is doing a lot of heavy lifting here. if you need this to work on literally any correctly formatted CIF file, you cannot just vibes your way through it β you need full CIF parsing with CIF grammar and tokenisation. that's the real deal, iykyk. π
π OPTIONS π
-o,--output-dirout/β put all the split files into the directoryout/(default:'./'). yes queen, choose your own folder destiny.-v,--verboseβ print the names of the generated files toSTDERR. she's chatty, she's telling you everything she made. π£οΈ-q,--quietβ do not print file names toSTDERR. the opposite vibe. silent, mysterious, ethereal. π§--help,--usageβ output a short usage message (this message) and exit. π«Ά--versionβ output version information and exit. β
π REPORTING BUGS π
found a bug? do not suffer in silence bestie. report cif_split_primitive bugs using e-mail: cod-bugs@ibt.lt
π she's reading her inbox, she wants to know. fr fr.
π that's the whole page!! CIF_SPLIT_PRIMITIVE(1) from the General Commands Manual, section 1, footer and all β signing off with all my love, go split some files, you're iconic, no cap πππ¦πΈπ
π¦ where this page comes from
- debian bookworm: cod-tools 3.7.0+dfsg-1+b3 Β· LGPL-3.0-only
- debian trixie: cod-tools 3.11.0+dfsg-1 Β· LGPL-3.0-only
- ubuntu jammy: cod-tools 3.4.0+dfsg-1build2 Β· LGPL-3.0-only
- ubuntu noble: cod-tools 3.8.1+dfsg-1build3 Β· LGPL-3.0-only
- ubuntu questing: cod-tools 3.11.0+dfsg-1
- ubuntu resolute: cod-tools 3.11.0+dfsg-2build1 Β· LGPL-3.0-only
- ubuntu stonking: cod-tools 3.12.0+dfsg-2 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms