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-dir out/ β€” put all the split files into the directory out/ (default: './'). yes queen, choose your own folder destiny.
  • -v, --verbose β€” print the names of the generated files to STDERR. she's chatty, she's telling you everything she made. πŸ—£οΈ
  • -q, --quiet β€” do not print file names to STDERR. 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 πŸ’–πŸŽ€πŸ¦‹πŸŒΈπŸ‘‘