uniprotff 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- uniprotff/__init__.py +1 -0
- uniprotff/__main__.py +3 -0
- uniprotff/_charmm_chromophore.py +344 -0
- uniprotff/_charmm_glycans.py +305 -0
- uniprotff/_charmm_histidine.py +45 -0
- uniprotff/_d_alanine.py +212 -0
- uniprotff/_glycam_glycans.py +211 -0
- uniprotff/_glycan_graph.py +89 -0
- uniprotff/_glycosylation.py +373 -0
- uniprotff/_gromacs_pairs.py +49 -0
- uniprotff/_metal_1264.py +129 -0
- uniprotff/_metal_topology.py +210 -0
- uniprotff/_native_charmm_protein.py +377 -0
- uniprotff/_native_charmm_residues.py +152 -0
- uniprotff/_native_protein.py +404 -0
- uniprotff/_ncaa_geometry.py +266 -0
- uniprotff/_nucleic_topology.py +136 -0
- uniprotff/_prepared_assembly.py +172 -0
- uniprotff/_psfgen_worker.py +31 -0
- uniprotff/_sulfated_glycans.py +109 -0
- uniprotff/_topology_openmm.py +594 -0
- uniprotff/auto_parameterization.py +361 -0
- uniprotff/c_type_heme.py +322 -0
- uniprotff/chemistry.py +534 -0
- uniprotff/chromophore.py +377 -0
- uniprotff/cli.py +1127 -0
- uniprotff/cluster.py +769 -0
- uniprotff/cmap_workflow.py +233 -0
- uniprotff/components.py +329 -0
- uniprotff/conformer_screening.py +76 -0
- uniprotff/doctor.py +79 -0
- uniprotff/electronic_state.py +101 -0
- uniprotff/elements.py +115 -0
- uniprotff/energy_parity.py +458 -0
- uniprotff/external_tools.py +229 -0
- uniprotff/fitting/__init__.py +182 -0
- uniprotff/fitting/bonded.py +312 -0
- uniprotff/fitting/common.py +101 -0
- uniprotff/fitting/diagnostics.py +116 -0
- uniprotff/fitting/electrostatics.py +402 -0
- uniprotff/fitting/profiles.py +322 -0
- uniprotff/fitting/water.py +137 -0
- uniprotff/gap_repair/__init__.py +1 -0
- uniprotff/gap_repair/flow.py +204 -0
- uniprotff/gap_repair/geometry.py +207 -0
- uniprotff/gap_repair/relaxation.py +131 -0
- uniprotff/gap_repair/repair.py +229 -0
- uniprotff/gap_repair/stereochemistry.py +55 -0
- uniprotff/gap_repair/structures.py +318 -0
- uniprotff/model_assets.py +97 -0
- uniprotff/native.py +170 -0
- uniprotff/ncaa.py +92 -0
- uniprotff/openmm_production.py +224 -0
- uniprotff/orca.py +787 -0
- uniprotff/parameters.py +170 -0
- uniprotff/pipeline.py +340 -0
- uniprotff/preparation.py +631 -0
- uniprotff/protonation.py +382 -0
- uniprotff/qm_artifacts.py +222 -0
- uniprotff/qm_workflow.py +555 -0
- uniprotff/quality.py +459 -0
- uniprotff/references.py +318 -0
- uniprotff/simulation.py +322 -0
- uniprotff/slurm.py +164 -0
- uniprotff/storage.py +70 -0
- uniprotff/structures.py +226 -0
- uniprotff/topology.py +1365 -0
- uniprotff/trajectory_qc.py +399 -0
- uniprotff/workspace.py +49 -0
- uniprotff-0.3.0.data/data/share/uniprotff/docs/install.md +100 -0
- uniprotff-0.3.0.data/data/share/uniprotff/examples/ala-tripeptide.pdb +17 -0
- uniprotff-0.3.0.data/data/share/uniprotff/examples/gap-1aki.cif +2982 -0
- uniprotff-0.3.0.data/data/share/uniprotff/models/gap-flow/esm2-8m/flow.safetensors +0 -0
- uniprotff-0.3.0.data/data/share/uniprotff/models/gap-flow/esm2-8m/model.json +26 -0
- uniprotff-0.3.0.data/data/share/uniprotff/models/gap-flow/esmc-300m/flow.safetensors +0 -0
- uniprotff-0.3.0.data/data/share/uniprotff/models/gap-flow/esmc-300m/model.json +26 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/catalog.json +3340 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1axm-sulfated-gag/amber19sb/r1/production-geometry.json +516 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1axm-sulfated-gag/amber19sb/r1/verification.json +23 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1axm-sulfated-gag/charmm36m/r1/production-geometry.json +455 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1axm-sulfated-gag/charmm36m/r1/verification.json +23 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/charmm36m/r1/assembly-cluster.json +1771 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/charmm36m/r1/coordination-validation.json +47 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/charmm36m/r1/mapped-parameters.json +672 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/charmm36m/r1/site-templates.xml +196 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/ff19sb/r1/assembly-cluster.json +1771 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/ff19sb/r1/coordination-validation.json +47 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/ff19sb/r1/mapped-parameters.json +672 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/ff19sb/r1/site-templates.xml +184 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1ckt-cisplatin-5iu/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1hpn-sulfated-gag/amber19sb/r1/production-geometry.json +1126 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1hpn-sulfated-gag/amber19sb/r1/verification.json +23 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/charmm36m/r1/ai2.pdb +37 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/charmm36m/r1/ai2.xml +201 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/charmm36m/r1/case-report.json +373 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/charmm36m/r1/coordination-validation.json +59 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/charmm36m/r1/qm-fit.json +838 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/ff19sb/r1/ai2.pdb +37 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/ff19sb/r1/ai2.xml +176 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/ff19sb/r1/case-report.json +275 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/ff19sb/r1/coordination-validation.json +59 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/ff19sb/r1/qm-fit.json +818 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1jx6-ai2-borate/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/charmm36m/r1/case-report.json +571 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/charmm36m/r1/coordination-validation.json +67 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/charmm36m/r1/hydroxo-heme-charmm36m.xml +235 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/charmm36m/r1/parameters.json +717 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/ff19sb/r1/case-report.json +571 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/ff19sb/r1/coordination-validation.json +67 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/ff19sb/r1/hydroxo-heme-ff19sb.xml +358 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/ff19sb/r1/parameters.json +717 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/1mbn-ferric-hydroxo/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/charmm36m/r1/case-report.json +432 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/charmm36m/r1/coordination-validation.json +47 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/charmm36m/r1/parameters.json +555 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/charmm36m/r1/pt-aqua-charmm36m.xml +140 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/ff19sb/r1/case-report.json +432 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/ff19sb/r1/coordination-validation.json +47 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/ff19sb/r1/parameters.json +555 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/ff19sb/r1/pt-aqua-ff19sb.xml +117 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/2i6z-pt-aqua/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/charmm36m/r1/fh8-gaff2-assembled.xml +326 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/charmm36m/r1/preparation-report.json +84 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/charmm36m/r2/coordination-validation.json +37 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/charmm36m/r2/exact-14-report.json +44 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/charmm36m/r2/fh8-gaff2-assembled.xml +326 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/charmm36m/r2/ligand.parm7 +388 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/charmm36m/r2/preparation-report.json +84 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/charmm36m/r2/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/ff19sb/r1/amber.gaff2-resp.xml +314 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/ff19sb/r1/preparation-report.json +84 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/ff19sb/r2/amber.gaff2-resp.xml +314 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/ff19sb/r2/coordination-validation.json +37 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/ff19sb/r2/ligand.parm7 +388 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/ff19sb/r2/preparation-report.json +84 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/6gzr-fh8/ff19sb/r2/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/charmm36m/r1/5L1-local-template.xml +524 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/charmm36m/r1/coordination-validation.json +47 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/charmm36m/r1/fit-report.json +120 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/charmm36m/r1/mapped-parameters.json +3992 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/ff19sb/r1/5L1-local-template.xml +459 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/ff19sb/r1/coordination-validation.json +47 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/ff19sb/r1/fit-report.json +102 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/ff19sb/r1/mapped-parameters.json +4594 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/7v3t-5l1/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/8fns-nd3/charmm36m/r1/case-report.json +498 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/8fns-nd3/charmm36m/r1/coordination-validation.json +457 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/8fns-nd3/charmm36m/r1/nd3-charmm-tip3p.xml +19 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/8fns-nd3/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/8fns-nd3/ff19sb/r1/case-report.json +462 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/8fns-nd3/ff19sb/r1/coordination-validation.json +457 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/8fns-nd3/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/9gxh-ethylene-glycol/charmm36m/r1/charmm.native-egly.xml +402 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/9gxh-ethylene-glycol/charmm36m/r1/preparation-report.json +114 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/9gxh-ethylene-glycol/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/9gxh-ethylene-glycol/ff19sb/r1/amber.gaff2-resp.xml +67 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/9gxh-ethylene-glycol/ff19sb/r1/preparation-report.json +114 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/9gxh-ethylene-glycol/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/charmm36m/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/charmm36m/r1/fit-parameters.json +413 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/charmm36m/r1/fit-report.json +9 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/charmm36m/r1/trajectory-qc.json +138 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/charmm36m/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/ff19sb/r1/energy-parity.json +229 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/ff19sb/r1/fit-parameters.json +413 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/ff19sb/r1/fit-report.json +9 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/ff19sb/r1/trajectory-qc.json +233 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ace-ala-nme-cmap/ff19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/charmm36m/r1/energy-parity.json +229 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/charmm36m/r1/preparation-report.json +163 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/charmm36m/r1/trajectory-qc.json +280 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/charmm36m/r1/trajectory-sites.json +52 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/charmm36m/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/ff19sb/r1/energy-parity.json +229 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/ff19sb/r1/source.pdb +20 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/ff19sb/r1/trajectory-qc.json +233 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/d-alanine/ff19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/charmm36m/r1/dms-ccd-ideal.pdb +5 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/charmm36m/r1/energy-parity.json +228 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/charmm36m/r1/native-dmso.xml +81 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/charmm36m/r1/native-source.json +20 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/charmm36m/r1/trajectory-qc.json +138 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/charmm36m/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/DMS.cif +111 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/dms-ccd-ideal.pdb +5 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/dms-gaff2-resp.xml +62 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/dms.frcmod +15 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/dms.mol2 +30 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/energy-parity.json +224 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/parameterization.json +32 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/resp-fit.json +43 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/trajectory-qc.json +134 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/dms/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ethanol/charmm36m/r1/case-report.json +88 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ethanol/charmm36m/r1/eoh-cgenff.xml +123 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ethanol/charmm36m/r1/esp-comparison.json +300 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ethanol/charmm36m/r1/verification.json +21 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ethanol/ff19sb/r1/case-report.json +79 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ethanol/ff19sb/r1/eoh-gaff2-resp.xml +63 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ethanol/ff19sb/r1/esp-comparison.json +300 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ethanol/ff19sb/r1/verification.json +21 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/charmm36m/r1/case-report.json +253 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/charmm36m/r1/native-cofactor.xml +2799 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/charmm36m/r1/solute.pdb +130 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/ff19sb/r1/case-report.json +50 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/ff19sb/r1/dry.inpcrd +44 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/ff19sb/r1/dry.prmtop +691 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/ff19sb/r1/ligand.frcmod +92 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/ff19sb/r1/ligand.mol2 +184 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/ff19sb/r1/resp-fit.json +474 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fad/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/charmm36m/r1/case-report.json +58 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/charmm36m/r1/cluster.json +623 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/charmm36m/r1/coordination-validation.json +107 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/charmm36m/r1/ferrocene.xml +267 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/charmm36m/r1/parameters.json +1530 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/charmm36m/r1/solute.pdb +33 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/ff19sb/r1/case-report.json +58 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/ff19sb/r1/cluster.json +623 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/ff19sb/r1/coordination-validation.json +107 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/ff19sb/r1/ferrocene.xml +244 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/ff19sb/r1/parameters.json +1530 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/ff19sb/r1/solute.pdb +33 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ferrocene/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/charmm36m/r1/case-report.json +175 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/charmm36m/r1/native-cofactor.xml +1353 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/charmm36m/r1/solute.pdb +76 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/ff19sb/r1/case-report.json +50 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/ff19sb/r1/dry.inpcrd +27 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/ff19sb/r1/dry.prmtop +448 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/ff19sb/r1/ligand.frcmod +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/ff19sb/r1/ligand.mol2 +113 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/ff19sb/r1/resp-fit.json +304 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/fmn/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro/charmm36m/r1/native.xml +33955 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro/charmm36m/r1/preparation-report.json +143 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro/ff19sb/r1/dry.parm7 +622 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro/ff19sb/r1/dry.rst7 +40 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro/ff19sb/r1/preparation-report.json +151 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/charmm36m/r1/cro-geometry.json +124 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/charmm36m/r1/dry-energy-parity.json +229 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/charmm36m/r1/trajectory-qc.json +10667 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/charmm36m/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/ff19sb/r1/cro-geometry.json +71 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/ff19sb/r1/dry-energy-parity.json +229 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/ff19sb/r1/trajectory-qc.json +12964 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/ff19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/gfp-cro-full/ff19sb/r1/wet-energy-parity.json +229 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/charmm36m/r1/charmm36m-lyn-isopeptide.xml +58 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/charmm36m/r1/cluster.json +2391 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/charmm36m/r1/fit-parameters.json +754 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/charmm36m/r1/fit-report.json +32 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/charmm36m/r1/lys-gly-isopeptide.pdb +57 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/charmm36m/r1/production-parameters.json +8 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/charmm36m/r1/qm-report.json +16 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/ff19sb/r1/amber19sb-lyn-isopeptide.xml +49 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/ff19sb/r1/cluster.json +2391 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/ff19sb/r1/fit-parameters.json +754 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/ff19sb/r1/fit-report.json +32 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/ff19sb/r1/lys-gly-isopeptide.pdb +57 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/ff19sb/r1/production-parameters.json +197 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/ff19sb/r1/qm-report.json +16 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/lys-isopeptide/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nad/charmm36m/r1/case-report.json +261 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nad/charmm36m/r1/native-cofactor.xml +2409 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nad/charmm36m/r1/solute.pdb +107 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nad/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nad/ff19sb/r1/case-report.json +50 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nad/ff19sb/r1/dry.inpcrd +37 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nad/ff19sb/r1/dry.prmtop +582 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nad/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nadh/charmm36m/r1/case-report.json +262 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nadh/charmm36m/r1/solute.pdb +108 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nadh/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nadh/ff19sb/r1/case-report.json +44 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nadh/ff19sb/r1/dry.inpcrd +38 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nadh/ff19sb/r1/dry.prmtop +591 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/nadh/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-all/amber19sb/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-all/amber19sb/r1/source.pdb +79 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-all/amber19sb/r1/stereochemistry.json +189 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-all/amber19sb/r1/template-coverage.json +3259 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-all/amber19sb/r1/trajectory-qc.json +327 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-all/amber19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-mixed/amber19sb/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-mixed/amber19sb/r1/source.pdb +99 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-mixed/amber19sb/r1/stereochemistry.json +160 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-mixed/amber19sb/r1/trajectory-qc.json +374 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-mixed/amber19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-remaining/amber19sb/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-remaining/amber19sb/r1/production-validation.json +329 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-remaining/amber19sb/r1/source.pdb +105 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-remaining/amber19sb/r1/stereochemistry.json +305 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-remaining/amber19sb/r1/trajectory-qc.json +703 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-d-remaining/amber19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-native-mixed/amber19sb/r1/energy-parity.json +229 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-native-mixed/amber19sb/r1/native-source-audit.json +154 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-native-mixed/amber19sb/r1/preparation.json +2758 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-native-mixed/amber19sb/r1/site-validation.json +765 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-native-mixed/amber19sb/r1/source.cif +184 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-native-mixed/amber19sb/r1/trajectory-qc.json +709 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-amber-native-mixed/amber19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-d/charmm36m/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-d/charmm36m/r1/native-lj14-distance-audit.json +439 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-d/charmm36m/r1/native-source-audit.json +1330 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-d/charmm36m/r1/source.cif +289 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-d/charmm36m/r1/summary.json +3062 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-d/charmm36m/r1/trajectory-qc.json +1173 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-d/charmm36m/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-primary/charmm36m/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-primary/charmm36m/r1/native-source-audit.json +1330 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-primary/charmm36m/r1/source.cif +156 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-primary/charmm36m/r1/summary.json +1204 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-primary/charmm36m/r1/trajectory-qc.json +562 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-primary/charmm36m/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-secondary/charmm36m/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-secondary/charmm36m/r1/native-lj14-distance-audit.json +39 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-secondary/charmm36m/r1/native-source-audit.json +1330 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-secondary/charmm36m/r1/source.cif +135 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-secondary/charmm36m/r1/summary.json +854 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-secondary/charmm36m/r1/trajectory-qc.json +468 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-charmm-native-secondary/charmm36m/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-charmm/charmm36m/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-charmm/charmm36m/r1/preparation.json +731 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-charmm/charmm36m/r1/recovery-evidence.json +83 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-charmm/charmm36m/r1/source.cif +94 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-charmm/charmm36m/r1/trajectory-qc.json +310 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-charmm/charmm36m/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-hyp/amber19sb/r1/energy-parity.json +230 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-hyp/amber19sb/r1/preparation.json +630 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-hyp/amber19sb/r1/source.cif +119 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-hyp/amber19sb/r1/trajectory-evidence.json +106 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-hyp/amber19sb/r1/trajectory-qc.json +310 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ncaa-repair-hyp/amber19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/opc-magnesium-12-6-4/ff19sb/r1/mg-ccd-ion.pdb +2 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/opc-magnesium-12-6-4/ff19sb/r1/model.json +40 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/opc-magnesium-12-6-4/ff19sb/r1/trajectory-qc.json +15 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/opc-magnesium-12-6-4/ff19sb/r1/verification.json +192 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/2ldo.cif +26146 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/electronic-state.json +6 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/energy-parity-dry-pmemd.json +368 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/energy-parity-wet-sander.json +231 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/geometry-audit.json +426 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/preparation-report.json +20256 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/sander-angle-diagnostic.json +108 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/trajectory-qc.json +5164 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/ppc-a-reduced-c-heme/ff19sb/r1/verification.json +31 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/charmm36m/r1/charmm36m-bonded.xml +23 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/charmm36m/r1/optimized-cluster.json +788 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/charmm36m/r1/optimized.pdb +43 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/charmm36m/r1/parameters.json +338 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/charmm36m/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/ff19sb/r1/ff19sb-bonded.xml +23 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/ff19sb/r1/optimized-cluster.json +788 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/ff19sb/r1/optimized.pdb +43 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/ff19sb/r1/parameters.json +338 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/data/zinc-tetrathiolate/ff19sb/r1/verification.json +22 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/element-validation.json +2812 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/native-ion-audit.json +1423 -0
- uniprotff-0.3.0.data/data/share/uniprotff/parameters/pdb-elements.json +5252 -0
- uniprotff-0.3.0.dist-info/METADATA +56 -0
- uniprotff-0.3.0.dist-info/RECORD +376 -0
- uniprotff-0.3.0.dist-info/WHEEL +5 -0
- uniprotff-0.3.0.dist-info/entry_points.txt +2 -0
- uniprotff-0.3.0.dist-info/top_level.txt +1 -0
uniprotff/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Structure inspection and ORCA job preparation for UniProtFF."""
|
uniprotff/__main__.py
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
"""Join the release-native CHARMM GFP chromophore to its protein backbone."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
import warnings
|
|
7
|
+
from collections import defaultdict
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from tempfile import TemporaryDirectory
|
|
10
|
+
|
|
11
|
+
import gemmi
|
|
12
|
+
import numpy as np
|
|
13
|
+
import openmm as mm
|
|
14
|
+
import parmed
|
|
15
|
+
from openmm import app, unit
|
|
16
|
+
|
|
17
|
+
from .external_tools import tool_path, validate_tool
|
|
18
|
+
from ._charmm_glycans import (
|
|
19
|
+
_HISTIDINES, _ION_NAMES, _PackingNonbonded, _native_psf_system, _read_psf, _solvent_records,
|
|
20
|
+
)
|
|
21
|
+
from .storage import digest_file
|
|
22
|
+
|
|
23
|
+
_NATIVE_NAMES = {"N1": "N", "C3": "C", "O3": "O"}
|
|
24
|
+
_RTF_IMPROPERS = (("C", "CA3", "+N", "O"), ("N", "-C", "CA1", "HN"))
|
|
25
|
+
_WATER = {"HOH", "WAT", "TIP3"}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def has_charmm_chromophore(topology: app.Topology) -> bool:
|
|
29
|
+
return any(residue.name == "CRO" for residue in topology.residues())
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _native_files(work: Path) -> tuple[list[Path], list[Path]]:
|
|
33
|
+
root = tool_path("charmm-toppar")
|
|
34
|
+
protein_rtf, _, cgenff_rtf, _, modification_stream, water_stream = native = [
|
|
35
|
+
root / name for name in ("top_all36_prot.rtf", "par_all36m_prot.prm", "top_all36_cgenff.rtf",
|
|
36
|
+
"par_all36_cgenff.prm", "stream/prot/toppar_all36_prot_modify_res.str",
|
|
37
|
+
"toppar_water_ions.str")
|
|
38
|
+
]
|
|
39
|
+
for path in native:
|
|
40
|
+
if not path.is_file():
|
|
41
|
+
raise ValueError(f"CHARMM36m CRO parameter source missing at {path}")
|
|
42
|
+
source = modification_stream.read_text(encoding="utf-8", errors="replace")
|
|
43
|
+
cropped = re.search(r"(?ims)^RESI\s+CRO(?:\s|$).*?(?=^(?:RESI|PRES|END)\b)", source)
|
|
44
|
+
if cropped is None:
|
|
45
|
+
raise ValueError(f"CHARMM release does not contain a CRO topology at {modification_stream}")
|
|
46
|
+
# Every supported upstream protein template already creates this peptide bond
|
|
47
|
+
# with C +N. Listing both directions creates duplicate PSFGen angles.
|
|
48
|
+
cro_topology = re.sub(r"(?im)^BOND\s+N\s+-C(?:\s*!.*)?[ \t]*$", "", cropped[0])
|
|
49
|
+
cgenff_types = re.findall(r"(?im)^MASS\s+.*$", cgenff_rtf.read_text(encoding="utf-8", errors="replace"))
|
|
50
|
+
cro_rtf = work / "cro.rtf"
|
|
51
|
+
cro_rtf.write_text("* Native CRO and CGenFF atom types\n*\n36 1\n" + "\n".join(cgenff_types)
|
|
52
|
+
+ "\n" + cro_topology + "\nEND\n", encoding="utf-8")
|
|
53
|
+
water = water_stream.read_text(encoding="utf-8", errors="replace")
|
|
54
|
+
water_definition = re.search(r"(?ims)^\s*read rtf[^\n]*\n(.*?)^END\s*$", water)
|
|
55
|
+
if water_definition is None:
|
|
56
|
+
raise ValueError(f"CHARMM release has no water and ion topology at {water_stream}")
|
|
57
|
+
water_rtf = work / "water.rtf"
|
|
58
|
+
water_rtf.write_text(water_definition[1] + "\nEND\n", encoding="utf-8")
|
|
59
|
+
# The worker regenerates angles and dihedrals after applying all patches.
|
|
60
|
+
# PSFGen 1.0.5 recognizes AUTO ANGLES DIHE without CHARMM's PATCH keyword.
|
|
61
|
+
psfgen_protein_rtf = work / "protein.rtf"
|
|
62
|
+
protein = protein_rtf.read_text(encoding="utf-8", errors="replace")
|
|
63
|
+
psfgen_protein_rtf.write_text(re.sub(r"(?im)^(auto\w*\s+angles\s+dihe\w*)\s+patch\b", r"\1", protein),
|
|
64
|
+
encoding="utf-8")
|
|
65
|
+
return native, [psfgen_protein_rtf, cro_rtf, water_rtf]
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def _backbone(topology: app.Topology, residue_templates: dict) -> tuple[list, dict, list, list, list]:
|
|
69
|
+
bonds = {frozenset((first.index, second.index)) for first, second in topology.bonds()}
|
|
70
|
+
protein_segments = []
|
|
71
|
+
predecessor = None
|
|
72
|
+
address = {}
|
|
73
|
+
solvent = []
|
|
74
|
+
backbone_bonds = set()
|
|
75
|
+
for residue in topology.residues():
|
|
76
|
+
if residue.name in _WATER:
|
|
77
|
+
solvent.append(residue)
|
|
78
|
+
continue
|
|
79
|
+
native_name = _HISTIDINES.get(residue.name, residue.name)
|
|
80
|
+
if native_name not in residue_templates or (
|
|
81
|
+
native_name != "CRO" and not gemmi.find_tabulated_residue(residue.name).is_amino_acid()
|
|
82
|
+
and residue.name not in _HISTIDINES
|
|
83
|
+
):
|
|
84
|
+
raise ValueError(f"no native CHARMM template for {residue.name} in a CRO-containing protein")
|
|
85
|
+
names = {atom.name: atom.index for atom in residue.atoms()}
|
|
86
|
+
n_name, c_name = ("N1", "C3") if residue.name == "CRO" else ("N", "C")
|
|
87
|
+
linkage = frozenset((names.get(n_name), predecessor[1])) if predecessor else frozenset()
|
|
88
|
+
if predecessor and predecessor[0] is residue.chain and linkage in bonds:
|
|
89
|
+
backbone_bonds.add(linkage)
|
|
90
|
+
else:
|
|
91
|
+
protein_segments.append([])
|
|
92
|
+
segment = f"P{len(protein_segments):03d}"
|
|
93
|
+
number = str(residue.index + 1)
|
|
94
|
+
protein_segments[-1].append((number, native_name, segment, residue))
|
|
95
|
+
address[residue.index] = (segment, number)
|
|
96
|
+
predecessor = (residue.chain, names.get(c_name))
|
|
97
|
+
cro_sites, plans = [], []
|
|
98
|
+
for residues in protein_segments:
|
|
99
|
+
first, last = residues[0], residues[-1]
|
|
100
|
+
first_patch = {"GLY": "GLYP", "PRO": "PROP"}.get(first[1], "NTER")
|
|
101
|
+
plans.append((first[2], [entry[:3] for entry in residues], first_patch, "CTER", True))
|
|
102
|
+
for index, entry in enumerate(residues):
|
|
103
|
+
if entry[1] != "CRO":
|
|
104
|
+
continue
|
|
105
|
+
if not 0 < index < len(residues) - 1:
|
|
106
|
+
raise ValueError(f"{entry[3]} lacks one or both observed backbone links C–N1 and C3–N")
|
|
107
|
+
cro_sites.append((residues[index - 1][3], entry[3], residues[index + 1][3]))
|
|
108
|
+
patches = []
|
|
109
|
+
for first, second in topology.bonds():
|
|
110
|
+
if first.residue is second.residue or frozenset((first.index, second.index)) in backbone_bonds:
|
|
111
|
+
continue
|
|
112
|
+
if first.name == second.name == "SG" and first.residue.name == second.residue.name == "CYS":
|
|
113
|
+
patches.append(("DISU", (address[first.residue.index], address[second.residue.index])))
|
|
114
|
+
else:
|
|
115
|
+
raise ValueError(f"no native CHARMM patch for extra covalent attachment {first} – {second}")
|
|
116
|
+
return plans, address, solvent, cro_sites, patches
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def _water_plan(solvent: list, coordinates: np.ndarray) -> tuple[list, list, dict]:
|
|
120
|
+
if not solvent:
|
|
121
|
+
return [], [], {}
|
|
122
|
+
water_top = app.Topology()
|
|
123
|
+
chain = water_top.addChain()
|
|
124
|
+
positions = []
|
|
125
|
+
oxygen_indices = []
|
|
126
|
+
for residue in solvent:
|
|
127
|
+
atoms = [atom for atom in residue.atoms() if atom.element == app.element.oxygen]
|
|
128
|
+
if len(atoms) != 1:
|
|
129
|
+
raise ValueError(f"expected one observed oxygen for crystal water {residue}")
|
|
130
|
+
water = water_top.addResidue("HOH", chain)
|
|
131
|
+
water_top.addAtom("O", app.element.oxygen, water)
|
|
132
|
+
positions.append(mm.Vec3(*coordinates[atoms[0].index]))
|
|
133
|
+
oxygen_indices.append(atoms[0].index)
|
|
134
|
+
model = app.Modeller(water_top, positions * unit.angstrom)
|
|
135
|
+
model.addHydrogens(
|
|
136
|
+
app.ForceField("charmm36_2024/water.xml"),
|
|
137
|
+
platform=mm.Platform.getPlatformByName("Reference"),
|
|
138
|
+
)
|
|
139
|
+
segments, assigned_coordinates = _solvent_records(model, 0, "Na+", "Cl-")
|
|
140
|
+
addresses = [(segment, number) for segment, residues, *_ in segments for number, *_ in residues]
|
|
141
|
+
names = {atom_index: (segment, number, "OH2")
|
|
142
|
+
for atom_index, (segment, number) in zip(oxygen_indices, addresses, strict=True)}
|
|
143
|
+
return segments, assigned_coordinates, names
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def _plan(topology: app.Topology, positions, parameters, rtf: list[Path]) -> tuple[dict, dict, list, dict]:
|
|
147
|
+
segments, addresses, solvent, cro_sites, patches = _backbone(topology, parameters.residues)
|
|
148
|
+
xyz = np.asarray(positions.value_in_unit(unit.angstrom))
|
|
149
|
+
terminal_addresses = {(segment, residues[-1][0]) for segment, residues, *_ in segments}
|
|
150
|
+
water_segments, water_coordinates, atom_names = _water_plan(solvent, xyz)
|
|
151
|
+
existing_water_segments = len(water_segments)
|
|
152
|
+
plan = {"topologies": list(map(str, rtf)), "segments": segments + water_segments,
|
|
153
|
+
"patches": patches, "coordinates": water_coordinates}
|
|
154
|
+
for atom in topology.atoms():
|
|
155
|
+
if atom.element in {None, app.element.hydrogen} or atom.residue.index not in addresses:
|
|
156
|
+
continue
|
|
157
|
+
segment, number = addresses[atom.residue.index]
|
|
158
|
+
name = atom.name
|
|
159
|
+
if atom.residue.name == "CRO":
|
|
160
|
+
name = _NATIVE_NAMES.get(name, name)
|
|
161
|
+
elif atom.residue.name == "ILE" and name == "CD1":
|
|
162
|
+
name = "CD"
|
|
163
|
+
elif (segment, number) in terminal_addresses:
|
|
164
|
+
name = {"O": "OT1", "OXT": "OT2"}.get(name, name)
|
|
165
|
+
plan["coordinates"].append((segment, number, name, xyz[atom.index].tolist()))
|
|
166
|
+
atom_names[atom.index] = (segment, number, name)
|
|
167
|
+
for _, residue, _ in cro_sites:
|
|
168
|
+
observed = {atom_names[atom.index][2] for atom in residue.atoms() if atom.index in atom_names}
|
|
169
|
+
expected = {atom.name for atom in parameters.residues["CRO"].atoms
|
|
170
|
+
if parameters.atom_types_str[atom.type].atomic_number > 1}
|
|
171
|
+
if observed != expected:
|
|
172
|
+
raise ValueError(f"{residue} has an incompatible CRO heavy-atom set, missing {sorted(expected - observed)}, "
|
|
173
|
+
f"unexpected {sorted(observed - expected)}")
|
|
174
|
+
return plan, atom_names, cro_sites, {"address": addresses, "water_segments": existing_water_segments}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def _additional_solvent(plan: dict, psf, parameters, padding, salt, neutralize, positive, negative, nwater_segments):
|
|
178
|
+
if positive not in _ION_NAMES or negative not in _ION_NAMES:
|
|
179
|
+
raise ValueError("requested ion lacks a native CHARMM water and ion parameter")
|
|
180
|
+
modeller = app.Modeller(psf.topology, psf.positions)
|
|
181
|
+
modeller.addSolvent(
|
|
182
|
+
_PackingNonbonded(psf, parameters), model="tip3p",
|
|
183
|
+
padding=padding * unit.nanometer, ionicStrength=salt * unit.molar,
|
|
184
|
+
neutralize=neutralize, positiveIon=positive, negativeIon=negative,
|
|
185
|
+
)
|
|
186
|
+
water_segments, water_coordinates = _solvent_records(modeller, len(psf.residues), positive, negative)
|
|
187
|
+
names = {segment[0]: f"W{nwater_segments + index:03d}" for index, segment in enumerate(water_segments)}
|
|
188
|
+
plan["segments"].extend((names[segment], [(number, name, names[segment]) for number, name, _ in group],
|
|
189
|
+
first, last, polymer) for segment, group, first, last, polymer in water_segments)
|
|
190
|
+
plan["coordinates"].extend((names[segment], number, name, point)
|
|
191
|
+
for segment, number, name, point in water_coordinates)
|
|
192
|
+
return modeller.topology.getPeriodicBoxVectors()
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def _mapped_atom_indices(psf, atom_names: dict, topology: app.Topology, positions) -> dict:
|
|
196
|
+
lookup = {(atom.residue.segid, str(atom.residue.number), atom.name): atom.idx for atom in psf.atoms}
|
|
197
|
+
missing = {label for label in atom_names.values() if label not in lookup}
|
|
198
|
+
if missing:
|
|
199
|
+
raise ValueError(f"PSFGen did not retain observed heavy atoms: {sorted(missing)[:8]}")
|
|
200
|
+
indices = {old: lookup[label] for old, label in atom_names.items()}
|
|
201
|
+
if len(set(indices.values())) != len(indices):
|
|
202
|
+
raise ValueError("PSFGen did not preserve distinct mapped atoms")
|
|
203
|
+
observed = np.asarray(positions.value_in_unit(unit.angstrom))
|
|
204
|
+
native = psf.coordinates
|
|
205
|
+
for old, new in indices.items():
|
|
206
|
+
if np.linalg.norm(native[new] - observed[old]) > 0.0011:
|
|
207
|
+
raise ValueError(f"PSFGen changed deposited heavy coordinates for {atom_names[old]}")
|
|
208
|
+
native[new] = observed[old]
|
|
209
|
+
psf.coordinates = native
|
|
210
|
+
# Verify every input covalent edge that connects observed heavy atoms.
|
|
211
|
+
edges = {frozenset((bond.atom1.idx, bond.atom2.idx)) for bond in psf.bonds}
|
|
212
|
+
for first, second in topology.bonds():
|
|
213
|
+
if first.index in indices and second.index in indices and frozenset(
|
|
214
|
+
(indices[first.index], indices[second.index])
|
|
215
|
+
) not in edges:
|
|
216
|
+
raise ValueError(f"native CHARMM assembly dropped the covalent connection {first} – {second}")
|
|
217
|
+
lengths = np.asarray([np.linalg.norm(native[bond.atom1.idx] - native[bond.atom2.idx]) for bond in psf.bonds])
|
|
218
|
+
if not np.isfinite(lengths).all() or np.any((lengths < 0.4) | (lengths > 4.0)):
|
|
219
|
+
raise ValueError("PSFGen left collapsed or disconnected native bonded coordinates")
|
|
220
|
+
return indices
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
def _site_evidence(psf, sites: list, addresses: dict, parameters) -> list[dict]:
|
|
224
|
+
native_residues = {(r.segid, str(r.number)): r for r in psf.residues}
|
|
225
|
+
actual_impropers = {
|
|
226
|
+
tuple(getattr(term, f"atom{i}").idx for i in range(1, 5)): term for term in psf.impropers
|
|
227
|
+
}
|
|
228
|
+
cmap_residues = defaultdict(int)
|
|
229
|
+
for term in psf.cmaps:
|
|
230
|
+
cmap_residues[term.atom3.residue.idx] += 1
|
|
231
|
+
reported = []
|
|
232
|
+
for preceding, cro, following in sites:
|
|
233
|
+
residue_chain = (preceding, cro, following)
|
|
234
|
+
native = tuple(native_residues[addresses[residue.index]] for residue in residue_chain)
|
|
235
|
+
atom_map = [{atom.name: atom for atom in residue.atoms} for residue in native]
|
|
236
|
+
matches = []
|
|
237
|
+
for record in _RTF_IMPROPERS:
|
|
238
|
+
atoms = tuple(atom_map[0 if name[0] == "-" else 2 if name[0] == "+" else 1][name.lstrip("+-")]
|
|
239
|
+
for name in record)
|
|
240
|
+
indices = tuple(atom.idx for atom in atoms)
|
|
241
|
+
term = actual_impropers.get(indices) or actual_impropers.get(indices[::-1])
|
|
242
|
+
reference = parameters.match_improper_type(*(atom.type for atom in atoms))
|
|
243
|
+
if term is None or term.type != reference:
|
|
244
|
+
raise ValueError(f"native CHARMM CRO improper {record} was lost or changed by PSFGen")
|
|
245
|
+
matches.append({"rtf_atoms": record, "atom_indices": indices,
|
|
246
|
+
"force_kcal_mol_radian2": term.type.psi_k, "target_degrees": term.type.psi_eq})
|
|
247
|
+
attachments = ((atom_map[0]["C"].idx, atom_map[1]["N"].idx),
|
|
248
|
+
(atom_map[1]["C"].idx, atom_map[2]["N"].idx))
|
|
249
|
+
if not cmap_residues[native[0].idx] or not cmap_residues[native[2].idx]:
|
|
250
|
+
raise ValueError(f"{cro} is missing a flanking parent CHARMM CMAP term")
|
|
251
|
+
reported.append({
|
|
252
|
+
"chain": cro.chain.id, "residue": cro.id, "name": "CRO",
|
|
253
|
+
"state": "neutral phenol", "net_charge_e": sum(atom.charge for atom in native[1].atoms),
|
|
254
|
+
"source_to_native_atom_names": _NATIVE_NAMES, "attachment_atom_indices": attachments,
|
|
255
|
+
"native_cro_impropers": matches, "flanking_cmaps": [cmap_residues[r.idx] for r in (native[0], native[2])],
|
|
256
|
+
})
|
|
257
|
+
return reported
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def _restore_protein_ids(psf, topology: app.Topology, addresses: dict) -> None:
|
|
261
|
+
native = {(res.segid, str(res.number)): res for res in psf.residues}
|
|
262
|
+
for residue in topology.residues():
|
|
263
|
+
if address := addresses.get(residue.index):
|
|
264
|
+
result = native[address]
|
|
265
|
+
result.chain, result.number, result.insertion_code = residue.chain.id, int(residue.id), residue.insertionCode
|
|
266
|
+
# ParmEd caches its OpenMM topology before solvent packing.
|
|
267
|
+
if hasattr(psf, "_topology"):
|
|
268
|
+
del psf._topology
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def _crystal_ph(source: Path) -> float | None:
|
|
272
|
+
if source.suffix.lower() in {".cif", ".mmcif"}:
|
|
273
|
+
value = gemmi.cif.read_file(str(source)).sole_block().find_value("_exptl_crystal_grow.pH")
|
|
274
|
+
if value is not None and not gemmi.cif.is_null(value):
|
|
275
|
+
number = gemmi.cif.as_number(value)
|
|
276
|
+
if np.isfinite(number):
|
|
277
|
+
return float(number)
|
|
278
|
+
return None
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
def assemble_charmm_chromophore(
|
|
282
|
+
source: Path, topology: app.Topology, positions, source_records: dict, *,
|
|
283
|
+
model_number: int, cutoff: float, padding: float | None, salt: float,
|
|
284
|
+
neutralize: bool, positive: str, negative: str,
|
|
285
|
+
):
|
|
286
|
+
from .topology import TopologyIR
|
|
287
|
+
|
|
288
|
+
psfgen = tool_path("psfgen")
|
|
289
|
+
validate_tool("psfgen", psfgen)
|
|
290
|
+
with TemporaryDirectory(prefix="uniprotff-cro-") as temporary:
|
|
291
|
+
work = Path(temporary)
|
|
292
|
+
native, rtf = _native_files(work)
|
|
293
|
+
with warnings.catch_warnings():
|
|
294
|
+
warnings.filterwarnings("ignore", message='.*Ignoring "DELETE ACCE NE2".*',
|
|
295
|
+
category=parmed.exceptions.ParameterWarning)
|
|
296
|
+
# The unused CGenFF halogen templates carry these virtual lone pairs.
|
|
297
|
+
warnings.filterwarnings("ignore", message="LONEPAIR type COLINEAR not supported.*",
|
|
298
|
+
category=parmed.exceptions.ParameterWarning)
|
|
299
|
+
parameters = parmed.charmm.CharmmParameterSet(*map(str, native))
|
|
300
|
+
(work / "empty.pdb").write_text("END\n", encoding="utf-8")
|
|
301
|
+
plan, atom_names, sites, numbers = _plan(topology, positions, parameters, rtf)
|
|
302
|
+
psf = _read_psf(work, psfgen, plan, parameters)
|
|
303
|
+
if padding is not None:
|
|
304
|
+
_mapped_atom_indices(psf, atom_names, topology, positions)
|
|
305
|
+
box = _additional_solvent(plan, psf, parameters, padding, salt, neutralize, positive, negative,
|
|
306
|
+
numbers["water_segments"])
|
|
307
|
+
psf = _read_psf(work, psfgen, plan, parameters)
|
|
308
|
+
psf.box_vectors = box
|
|
309
|
+
indices = _mapped_atom_indices(psf, atom_names, topology, positions)
|
|
310
|
+
chromophores = _site_evidence(psf, sites, numbers["address"], parameters)
|
|
311
|
+
_restore_protein_ids(psf, topology, numbers["address"])
|
|
312
|
+
system = _native_psf_system(psf, cutoff)
|
|
313
|
+
source_atoms = {indices[atom.index]: source_records[atom.id]
|
|
314
|
+
for atom in topology.atoms() if atom.index in indices and atom.id in source_records}
|
|
315
|
+
added = defaultdict(int)
|
|
316
|
+
for residue in psf.residues:
|
|
317
|
+
if len(residue.atoms) == 1 and residue.atoms[0].idx not in source_atoms:
|
|
318
|
+
added[residue.name] += 1
|
|
319
|
+
charge = sum(atom.charge for atom in psf.atoms)
|
|
320
|
+
provenance = {
|
|
321
|
+
"source": str(source.resolve()), "source_sha256": digest_file(source), "model": model_number,
|
|
322
|
+
"geometry_reference": "observed_atom_coordinates",
|
|
323
|
+
"forcefield_xml": None, "water_and_ion_xml": None, "water_model": "CHARMM-modified TIP3P",
|
|
324
|
+
"water_packing_template": "tip3p" if padding is not None else None,
|
|
325
|
+
"coulomb14_scale": 1.0, "lj14_scale": 1.0,
|
|
326
|
+
"explicit_gromacs_14": True,
|
|
327
|
+
"expected_charge_e": 0 if padding is not None and neutralize else round(charge),
|
|
328
|
+
"chromophore": {
|
|
329
|
+
"builder": "PSFGen with release-native CHARMM36m CRO and CGenFF",
|
|
330
|
+
"native_parameter_sha256": {str(path.resolve()): digest_file(path) for path in native},
|
|
331
|
+
"sites": chromophores, "observed_heavy_atoms_mapped": len(source_atoms),
|
|
332
|
+
"protein_protonation": "native standard fixed states",
|
|
333
|
+
"crystallization_pH": _crystal_ph(source),
|
|
334
|
+
"scope": "fixed-charge ground-state structure and dynamics",
|
|
335
|
+
},
|
|
336
|
+
"solvation": {"padding_nm": padding, "ionic_strength_molar": salt, "neutralize": neutralize,
|
|
337
|
+
"positive_ion": positive, "negative_ion": negative, "added_ions": dict(added)},
|
|
338
|
+
"openmm": mm.__version__, "parmed": parmed.__version__,
|
|
339
|
+
}
|
|
340
|
+
return TopologyIR(
|
|
341
|
+
psf.topology, system, psf.positions, psf, "charmm36m",
|
|
342
|
+
[atom.type for atom in psf.atoms], [residue.name for residue in psf.residues],
|
|
343
|
+
source_atoms, {}, [], provenance, [],
|
|
344
|
+
)
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"""Build CHARMM36m glycopeptides from release-native RTF/PRM patches."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from collections import defaultdict
|
|
6
|
+
import json
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
import re
|
|
9
|
+
import warnings
|
|
10
|
+
|
|
11
|
+
import gemmi
|
|
12
|
+
import numpy as np
|
|
13
|
+
import openmm as mm
|
|
14
|
+
import parmed
|
|
15
|
+
from openmm import app, unit
|
|
16
|
+
|
|
17
|
+
from .external_tools import tool_path, validate_tool
|
|
18
|
+
from ._glycan_graph import is_sugar
|
|
19
|
+
from ._topology_openmm import KCAL_TO_KJ, _set_gromacs_angle_functions
|
|
20
|
+
from ._sulfated_glycans import GAG_SUGARS, SULFATED_SUGARS
|
|
21
|
+
from .storage import digest_file
|
|
22
|
+
|
|
23
|
+
_CARB_TYPES = {"Y": "GLCNA", "V": "GALNA", "M": "MAN", "G": "GLC", "L": "GAL", "f": "FUC", "X": "XYL"}
|
|
24
|
+
_AXIAL_ACCEPTORS = {"AMAN": {"O2"}, "BMAN": {"O2"},
|
|
25
|
+
"AGAL": {"O4"}, "BGAL": {"O4"}, "AGALNA": {"O4"}, "BGALNA": {"O4"},
|
|
26
|
+
"AFUC": {"O4"}, "BFUC": {"O4"}, "AIDOA": {"O2", "O4"}}
|
|
27
|
+
_HISTIDINES = {"HID": "HSD", "HIE": "HSE", "HIP": "HSP", "HIS": "HSE"}
|
|
28
|
+
_ION_NAMES = {"Li+": "LIT", "Na+": "SOD", "K+": "POT", "Rb+": "RUB", "Cs+": "CES", "Cl-": "CLA"}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _charmm_files(work):
|
|
32
|
+
root = tool_path("charmm-toppar").resolve()
|
|
33
|
+
native = [
|
|
34
|
+
root / "top_all36_prot.rtf", root / "top_all36_carb.rtf",
|
|
35
|
+
root / "par_all36m_prot.prm", root / "par_all36_carb.prm",
|
|
36
|
+
root / "stream/carb/toppar_all36_carb_glycopeptide.str", root / "toppar_water_ions.str",
|
|
37
|
+
]
|
|
38
|
+
for path in native:
|
|
39
|
+
if not path.is_file():
|
|
40
|
+
raise ValueError(f"CHARMM36m glycan parameter source missing at {path}")
|
|
41
|
+
rtf = []
|
|
42
|
+
for path in (native[0], native[1], native[4], native[5]):
|
|
43
|
+
content = path.read_text(encoding="utf-8", errors="replace")
|
|
44
|
+
if path.suffix == ".str":
|
|
45
|
+
content = re.search(r"(?ims)^\s*read rtf[^\n]*\n(.*?)^END\s*$", content)[1] + "\nEND\n"
|
|
46
|
+
content = re.sub(r"(?im)^(auto\w*\s+angles\s+dihe\w*)\s+patch\b", r"\1", content)
|
|
47
|
+
output = work / f"{path.stem}.rtf"
|
|
48
|
+
output.write_text(content, encoding="utf-8")
|
|
49
|
+
rtf.append(output)
|
|
50
|
+
return native, rtf
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def _segments(topology, prepared):
|
|
54
|
+
from .topology import _bond_indices
|
|
55
|
+
|
|
56
|
+
segments = []
|
|
57
|
+
sugar_segment = []
|
|
58
|
+
address = {}
|
|
59
|
+
templates = {}
|
|
60
|
+
backbone = _bond_indices(topology)
|
|
61
|
+
previous_c = None
|
|
62
|
+
previous_chain = None
|
|
63
|
+
proteins = []
|
|
64
|
+
for residue in topology.residues():
|
|
65
|
+
idx, name = residue.index, residue.name
|
|
66
|
+
residue_id = str(idx + 1)
|
|
67
|
+
if is_sugar(name):
|
|
68
|
+
if prepared is None:
|
|
69
|
+
if name not in GAG_SUGARS:
|
|
70
|
+
raise ValueError(f"no compatible native residue mapping for {name} in a sulfated glycan")
|
|
71
|
+
name = GAG_SUGARS[name].template
|
|
72
|
+
else:
|
|
73
|
+
glycam = prepared.names.get(idx, "")
|
|
74
|
+
stem = _CARB_TYPES.get(glycam[1:2])
|
|
75
|
+
if stem is None or glycam[2:3] not in {"A", "B"}:
|
|
76
|
+
raise ValueError(f"no validated CHARMM residue mapping for {name} ({glycam})")
|
|
77
|
+
name = glycam[2] + stem
|
|
78
|
+
segment = "GLYC"
|
|
79
|
+
sugar_segment.append((residue_id, name, segment))
|
|
80
|
+
else:
|
|
81
|
+
if not gemmi.find_tabulated_residue(name).is_amino_acid() and name not in _HISTIDINES:
|
|
82
|
+
raise ValueError(f"CHARMM glycan assembly has no compatible template for {residue}")
|
|
83
|
+
ccd_name = prepared.names.get(idx, name) if prepared is not None else name
|
|
84
|
+
name = _HISTIDINES.get(ccd_name, _HISTIDINES.get(name, name))
|
|
85
|
+
names = {atom.name: atom.index for atom in residue.atoms()}
|
|
86
|
+
n_atom = names.get("N")
|
|
87
|
+
if previous_chain is not residue.chain or previous_c is None or n_atom is None or (
|
|
88
|
+
min(previous_c, n_atom), max(previous_c, n_atom)
|
|
89
|
+
) not in backbone:
|
|
90
|
+
proteins.append([])
|
|
91
|
+
segment = f"P{len(proteins):03d}"
|
|
92
|
+
proteins[-1].append((residue_id, name, segment))
|
|
93
|
+
previous_chain, previous_c = residue.chain, names.get("C")
|
|
94
|
+
address[idx] = (segment, residue_id)
|
|
95
|
+
templates[idx] = name
|
|
96
|
+
for protein in proteins:
|
|
97
|
+
first = {"GLY": "GLYP", "PRO": "PROP"}.get(protein[0][1], "NTER")
|
|
98
|
+
segments.append((protein[0][2], protein, first, "CTER", True))
|
|
99
|
+
if sugar_segment:
|
|
100
|
+
segments.append(("GLYC", sugar_segment, "none", "none", True))
|
|
101
|
+
return segments, address, templates
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def _patches(topology, links, address, templates):
|
|
105
|
+
patches = []
|
|
106
|
+
for link in links:
|
|
107
|
+
donor, acceptor = link.donor.residue.index, link.acceptor.residue.index
|
|
108
|
+
anomer = templates[donor][0]
|
|
109
|
+
if link.kind == "N-linked":
|
|
110
|
+
patch = "NGL" + anomer
|
|
111
|
+
elif link.kind == "O-linked":
|
|
112
|
+
patch = link.acceptor.residue.name[0] + "GP" + anomer
|
|
113
|
+
else:
|
|
114
|
+
position = link.acceptor.name[-1]
|
|
115
|
+
orientation = "T" if position == "6" else "A" if link.acceptor.name in _AXIAL_ACCEPTORS.get(templates[acceptor], ()) else "B"
|
|
116
|
+
patch = f"1{position}{anomer}{orientation}"
|
|
117
|
+
patches.append((patch, (address[acceptor], address[donor])))
|
|
118
|
+
for residue in topology.residues():
|
|
119
|
+
if (sugar := SULFATED_SUGARS.get(residue.name)) is not None:
|
|
120
|
+
patches.extend((modification.patch, (address[residue.index],)) for modification in sugar.sulfations)
|
|
121
|
+
for first, second in topology.bonds():
|
|
122
|
+
if first.residue is not second.residue and first.name == second.name == "SG":
|
|
123
|
+
patches.append(("DISU", (address[first.residue.index], address[second.residue.index])))
|
|
124
|
+
return patches
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def _solute_coordinates(topology, positions, segments, address, templates, links):
|
|
128
|
+
terminal = {residues[-1][0] for segment, residues, _, _, _ in segments if segment.startswith("P")}
|
|
129
|
+
coords = []
|
|
130
|
+
names = {}
|
|
131
|
+
donors = {link.donor.residue.index for link in links}
|
|
132
|
+
xyz = np.asarray(positions.value_in_unit(unit.angstrom))
|
|
133
|
+
for atom in topology.atoms():
|
|
134
|
+
if atom.element in (None, app.element.hydrogen) or atom.name == "O1" and atom.residue.index in donors:
|
|
135
|
+
continue
|
|
136
|
+
segment, residue_id = address[atom.residue.index]
|
|
137
|
+
name = atom.name
|
|
138
|
+
if segment == "GLYC" and atom.residue.name in GAG_SUGARS:
|
|
139
|
+
name = GAG_SUGARS[atom.residue.name].aliases.get(name, name)
|
|
140
|
+
if segment == "GLYC" and templates[atom.residue.index].endswith("NA"):
|
|
141
|
+
name = {"N2": "N", "C7": "C", "O7": "O", "C8": "CT"}.get(name, name)
|
|
142
|
+
elif atom.residue.name == "ILE" and name == "CD1":
|
|
143
|
+
name = "CD"
|
|
144
|
+
elif residue_id in terminal:
|
|
145
|
+
name = {"O": "OT1", "OXT": "OT2"}.get(name, name)
|
|
146
|
+
coords.append((segment, residue_id, name, xyz[atom.index].tolist()))
|
|
147
|
+
names[atom.index] = (segment, residue_id, name)
|
|
148
|
+
return coords, names
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class _PackingNonbonded:
|
|
152
|
+
"""Supply native LJ radii and charges to OpenMM's solvent/ion placer."""
|
|
153
|
+
|
|
154
|
+
def __init__(self, psf, parameters):
|
|
155
|
+
self.solute = [(atom.charge, atom.sigma / 10, atom.epsilon * KCAL_TO_KJ) for atom in psf.atoms]
|
|
156
|
+
self.water = {}
|
|
157
|
+
for atom in parameters.residues["TIP3"].atoms:
|
|
158
|
+
atom_type = parameters.atom_types_str[atom.type]
|
|
159
|
+
self.water[atom.name] = (atom.charge, atom_type.sigma / 10, atom_type.epsilon * KCAL_TO_KJ)
|
|
160
|
+
|
|
161
|
+
def createSystem(self, topology, **kwargs):
|
|
162
|
+
system = mm.System()
|
|
163
|
+
nonbonded = mm.NonbondedForce()
|
|
164
|
+
for atom in topology.atoms():
|
|
165
|
+
system.addParticle(0)
|
|
166
|
+
if atom.index < len(self.solute):
|
|
167
|
+
parameters = self.solute[atom.index]
|
|
168
|
+
else:
|
|
169
|
+
parameters = self.water[{"O": "OH2", "H1": "H1", "H2": "H2"}[atom.name]]
|
|
170
|
+
nonbonded.addParticle(*parameters)
|
|
171
|
+
system.addForce(nonbonded)
|
|
172
|
+
return system
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def _solvent_records(model, dry_residues, positive, negative):
|
|
176
|
+
ion_names = {name.upper().rstrip("+-"): _ION_NAMES[name] for name in (positive, negative)}
|
|
177
|
+
segments = defaultdict(list)
|
|
178
|
+
xyz = np.asarray(model.positions.value_in_unit(unit.angstrom))
|
|
179
|
+
coords = []
|
|
180
|
+
for i, residue in enumerate(model.topology.residues()):
|
|
181
|
+
if i < dry_residues:
|
|
182
|
+
continue
|
|
183
|
+
chunk, local = divmod(i - dry_residues, 9999)
|
|
184
|
+
segment, number = f"W{chunk:03d}", str(local + 1)
|
|
185
|
+
name = "TIP3" if residue.name == "HOH" else ion_names[residue.name.upper()]
|
|
186
|
+
segments[segment].append((number, name, segment))
|
|
187
|
+
for atom in residue.atoms():
|
|
188
|
+
atom_name = ("OH2" if atom.name == "O" else atom.name) if name == "TIP3" else name
|
|
189
|
+
coords.append((segment, number, atom_name, xyz[atom.index].tolist()))
|
|
190
|
+
return [(segment, residues, "none", "none", False) for segment, residues in segments.items()], coords
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
def _read_psf(work, psfgen, plan, parameters):
|
|
194
|
+
from ._glycosylation import _native_command
|
|
195
|
+
|
|
196
|
+
(work / "psfgen-plan.json").write_text(json.dumps(plan), encoding="utf-8")
|
|
197
|
+
result = _native_command(
|
|
198
|
+
[str(psfgen), str(Path(__file__).with_name("_psfgen_worker.py"))], work, "psfgen.log",
|
|
199
|
+
)
|
|
200
|
+
if "ERROR!" in result or "failed to set" in result.lower():
|
|
201
|
+
errors = [row.strip() for row in result.splitlines() if "ERROR!" in row or "failed to set" in row.lower()]
|
|
202
|
+
raise ValueError("PSFGen could not apply the native CHARMM patches\n" + "\n".join(errors[-12:]))
|
|
203
|
+
psf = parmed.load_file(str(work / "native.psf"))
|
|
204
|
+
psf.load_parameters(parameters)
|
|
205
|
+
pdb = app.PDBFile(str(work / "native.pdb"))
|
|
206
|
+
psf.coordinates = pdb.getPositions(asNumpy=True)
|
|
207
|
+
if len(psf.atoms) != len(psf.coordinates) or not np.isfinite(psf.coordinates).all():
|
|
208
|
+
raise ValueError("PSFGen produced invalid coordinates for the CHARMM topology")
|
|
209
|
+
return psf
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
def _normalize_nbfix(system):
|
|
213
|
+
"""Use the common coefficient representation for ParmEd's equivalent NBFIX force."""
|
|
214
|
+
for force in system.getForces():
|
|
215
|
+
if not isinstance(force, mm.CustomNonbondedForce):
|
|
216
|
+
continue
|
|
217
|
+
expression = "".join(force.getEnergyFunction().split()).rstrip(";")
|
|
218
|
+
expected = "(a/r6)^2-b/r6;r6=r2*r2*r2;r2=r^2;a=acoef(type1,type2);b=bcoef(type1,type2)"
|
|
219
|
+
if expression != expected:
|
|
220
|
+
raise ValueError(f"unsupported native CHARMM nonbonded force {expression}")
|
|
221
|
+
for i in range(force.getNumTabulatedFunctions()):
|
|
222
|
+
if force.getTabulatedFunctionName(i) == "acoef":
|
|
223
|
+
function = force.getTabulatedFunction(i)
|
|
224
|
+
width, height, a = function.getFunctionParameters()
|
|
225
|
+
function.setFunctionParameters(width, height, [x * x for x in a])
|
|
226
|
+
force.setEnergyFunction("acoef(type1,type2)/r^12-bcoef(type1,type2)/r^6")
|
|
227
|
+
force.setName("LennardJones")
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
def _native_psf_system(psf, cutoff):
|
|
231
|
+
"""Build OpenMM forces without merging away a typed native NBFIX pair."""
|
|
232
|
+
atom_types = {id(atom.atom_type): atom.atom_type for atom in psf.atoms}.values()
|
|
233
|
+
nbfix_diagonals = {(atom.rmin, abs(atom.epsilon)) for atom in atom_types if atom.nbfix}
|
|
234
|
+
aliases = [atom for atom in atom_types
|
|
235
|
+
if not atom.nbfix and (atom.rmin, abs(atom.epsilon)) in nbfix_diagonals]
|
|
236
|
+
try:
|
|
237
|
+
for atom in aliases:
|
|
238
|
+
# ParmEd may merge a later NBFIX type into an earlier type that has
|
|
239
|
+
# the same diagonal LJ terms and no NBFIX entries. An explicit self
|
|
240
|
+
# pair at the normal mixing values preserves the two table indices.
|
|
241
|
+
atom.add_nbfix(atom.name, 2 * atom.rmin, abs(atom.epsilon),
|
|
242
|
+
2 * atom.rmin_14, abs(atom.epsilon_14))
|
|
243
|
+
system = psf.createSystem(
|
|
244
|
+
nonbondedMethod=app.PME if psf.box is not None else app.NoCutoff,
|
|
245
|
+
nonbondedCutoff=cutoff * unit.nanometer, constraints=None, rigidWater=True, flexibleConstraints=True,
|
|
246
|
+
)
|
|
247
|
+
finally:
|
|
248
|
+
for atom in aliases:
|
|
249
|
+
atom.nbfix.pop(atom.name, None)
|
|
250
|
+
_normalize_nbfix(system)
|
|
251
|
+
for force in system.getForces():
|
|
252
|
+
if isinstance(force, mm.NonbondedForce):
|
|
253
|
+
force.setUseDispersionCorrection(False)
|
|
254
|
+
elif isinstance(force, mm.CustomNonbondedForce):
|
|
255
|
+
force.setUseLongRangeCorrection(False)
|
|
256
|
+
_set_gromacs_angle_functions(psf)
|
|
257
|
+
return system
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def build_charmm_glycan(work, topology, positions, links, prepared, padding, salt, neutralize, positive, negative, cutoff):
|
|
261
|
+
from .topology import TopologyIR
|
|
262
|
+
|
|
263
|
+
psfgen = tool_path("psfgen")
|
|
264
|
+
validate_tool("psfgen", psfgen)
|
|
265
|
+
native, rtf = _charmm_files(work)
|
|
266
|
+
(work / "empty.pdb").write_text("END\n", encoding="utf-8")
|
|
267
|
+
segments, address, names = _segments(topology, prepared)
|
|
268
|
+
coords, atom_names = _solute_coordinates(topology, positions, segments, address, names, links)
|
|
269
|
+
patches = _patches(topology, links, address, names)
|
|
270
|
+
plan = {"topologies": list(map(str, rtf)), "segments": segments, "patches": patches, "coordinates": coords}
|
|
271
|
+
with warnings.catch_warnings():
|
|
272
|
+
warnings.filterwarnings("ignore", message='.*Ignoring "DELETE ACCE NE2".*', category=parmed.exceptions.ParameterWarning)
|
|
273
|
+
parameters = parmed.charmm.CharmmParameterSet(*map(str, native))
|
|
274
|
+
psf = _read_psf(work, psfgen, plan, parameters)
|
|
275
|
+
solute_charge = sum(atom.charge for atom in psf.atoms)
|
|
276
|
+
if padding is not None:
|
|
277
|
+
if positive not in _ION_NAMES or negative not in _ION_NAMES:
|
|
278
|
+
raise ValueError("the native CHARMM water and ion release does not supply the requested monovalent ion")
|
|
279
|
+
modeller = app.Modeller(psf.topology, psf.positions)
|
|
280
|
+
modeller.addSolvent(
|
|
281
|
+
_PackingNonbonded(psf, parameters), model="tip3p",
|
|
282
|
+
padding=padding * unit.nanometer, ionicStrength=salt * unit.molar,
|
|
283
|
+
neutralize=neutralize, positiveIon=positive, negativeIon=negative,
|
|
284
|
+
)
|
|
285
|
+
water_segments, water_coords = _solvent_records(modeller, len(psf.residues), positive, negative)
|
|
286
|
+
plan["segments"] += water_segments
|
|
287
|
+
plan["coordinates"] += water_coords
|
|
288
|
+
psf = _read_psf(work, psfgen, plan, parameters)
|
|
289
|
+
psf.box_vectors = modeller.topology.getPeriodicBoxVectors()
|
|
290
|
+
system = _native_psf_system(psf, cutoff)
|
|
291
|
+
native_residue_indices = {(r.segid, str(r.number)): r.idx for r in psf.residues}
|
|
292
|
+
canonical = {i: (native_residue_indices[segment, residue], name)
|
|
293
|
+
for i, (segment, residue, name) in atom_names.items()}
|
|
294
|
+
provenance = {
|
|
295
|
+
"water_model": "CHARMM-modified TIP3P", "water_molecules": sum(r.name == "TIP3" for r in psf.residues),
|
|
296
|
+
}
|
|
297
|
+
ir = TopologyIR(
|
|
298
|
+
psf.topology, system, psf.positions, psf, "charmm36m",
|
|
299
|
+
[a.type for a in psf.atoms], [r.name for r in psf.residues], {}, {}, [], provenance, [],
|
|
300
|
+
)
|
|
301
|
+
return ir, canonical, {
|
|
302
|
+
"builder": "PSFGen with CHARMM36m carbohydrate and glycopeptide patches",
|
|
303
|
+
"inputs_sha256": {str(path): digest_file(path) for path in native},
|
|
304
|
+
"templates": names, "patches": [name for name, _ in patches], "solute_charge_e": solute_charge,
|
|
305
|
+
}
|