{"library":"modelcif","title":"ModelCIF","description":"A Python package for handling ModelCIF mmCIF and BinaryCIF files, used for representing comparative protein structure models and their metadata. It builds on the ihm library and supports reading/writing ModelCIF dictionaries, including references, alignments, quality metrics, and protocol steps. Current version is 1.7, with a release cadence of approximately every 6 months. Requires Python >=3.6.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install modelcif"],"cli":null},"imports":["from modelcif import System","from modelcif.model import Model","from modelcif.reference import TargetReference"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import modelcif\nimport modelcif.reader\nimport modelcif.model\nimport tempfile, os\n\n# create a simple system\nsys = modelcif.System(\"Example model\")\n# add a model\nmodel = modelcif.model.Model(sys, \"model_1\")\n# write to a temporary file\nwith tempfile.NamedTemporaryFile(suffix='.cif', delete=False) as f:\n    fname = f.name\n    sys.write(fname)\n# read back\nsys2 = modelcif.reader.read(fname)\nprint(len(sys2.models))\nos.unlink(fname)","lang":"python","description":"Create a minimal ModelCIF system with one model, write it to a mmCIF file, and read it back.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}