cif-grep(1)

πŸ“¦
version 1.0.13 Β· 2 versions
  • 1.0.13 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute (latest)
  • 1.0.1b Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute

πŸ’– cif-grep(1) β€” the manual page, but make it cute πŸ’–

okay bestie, welcome to cif-grep, a User Command and honestly a whole vibe. she's a tool kinda like grep, except she's out here printing fields in mmCIF files that match your patterns. let's get into it πŸ¦‹


✨ NAME ✨

cif-grep β€” a tool like grep to print fields in mmCIF files that match patterns


🌸 SYNOPSIS 🌸

cif-grep [OPTION] pattern file1 [file2..]

πŸ’… DESCRIPTION πŸ’…

so basically, this tool tries to work in a similar way as grep β€” but instead of scanning lines, she's searching mmCIF files and comparing the content of fields to your patterns. same energy, different target. iconic, honestly. πŸŽ€


πŸ”₯ OPTIONS πŸ”₯

first up, some ground rules before we get to the flags, bestie:

  • You can specify multiple files to search. more files, more fun. 🫢
  • If you specify a directory name, then <em>all files in that directory</em> will be searched. slay.
  • Want to go deeper? Use the --recursive flag to do a recursive search. she'll go all the way down the tree, no cap. 🌈

now the actual options, one by one, no skips:

  • --item=<item>, -i <item> β€” limits the search to only the item you named in <item>. Default is to search all items. and listen, the item should be of the form _category.item, with the leading underscore. do not forget the underscore, I am begging πŸ™ˆ
  • --quiet, -q β€” prints only the file names that match the pattern. minimal. clean. main character energy. πŸ‘‘
  • --count, -c β€” only shows the number of hits. just the digits, bestie, nothing else. πŸ”’
  • --invert-match, -v β€” only selects the fields that do not match the pattern. flips the whole thing, very contrarian of her, we love that. πŸ’€
  • --line-number, -n β€” prints the line numbers. so you know exactly where the tea is. πŸ“
  • --no-filename, -h β€” do not print the filename. anonymous era. 🧚
  • --with-filename, -H β€” do print the filename. okay so she's back to being known. πŸ’œ
  • --files-with-matches, -l β€” prints only the names of the files containing matches. not the matches themselves, just the receipts. ✨
  • --recursive, -r β€” search recursively. down the directory tree we go, bestie. 🌸
  • --verbose,-V β€” be more verbose, useful to diagnose validation errors. she'll tell you everything, and honestly? sometimes you need that. 😭

πŸ‘‘ AUTHOR πŸ‘‘

Written by Maarten L. Hekkelman <maarten@hekkelman.com> πŸ’–


😭 REPORTING BUGS 😭

Report bugs at https://github.com/PDB-REDO/cif-tools/issues

(if something's broken, tell the devs, not me β€” I'm just the messenger, fr fr)


🌈 SEE ALSO 🌈

cif-diff, cif-merge, cif-validate, cif2pdb, mmCQL, pdb2cif.

go read those too, they're all part of the friend group. 🫢


and that's the whole page, bestie!! this was version 1.0.5, dated 2022-11-20, and it's the cif-grep(1) manual β€” mwah, periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from