Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ligand Preparation Pipeline
Adds automated preparation of non-standard residues (ligands, modified amino acids, cofactors) for loading into tmol's PoseStack. Given a CIF/PDB structure with unknown residues, the pipeline detects them, builds RDKit molecules directly from atom arrays, protonates at physiological pH via Dimorphite-DL, assigns Rosetta-compatible atom types via OpenBabel, and registers the resulting residue types in the ChemicalDatabase -- so they load transparently alongside protein residues.
Pipeline
Changes
New module:
tmol/ligand/detect.pysmiles.pymol3d.pyatom_typing.pymolfile_to_params.py/mol2genparams.pyresidue_builder.pyRawResidueTypewith atoms, bonds, internal coordinates, non-polymer propertiesregistry.pygraph_match.pyparams_io.py.paramsfiles for interopdimorphite_dl.pyprotonate_mol_variants()(direct Mol-in/Mol-out)__init__.pyprepare_ligands()andprepare_single_ligand()APIDatabase extensions
element_typesinchemical.yamlgeneric_potentialatom types (CD, CR, Nim, Ohx, PG3, FR, ClR, BrR, IR, etc.) tochemical.yamlwith donor/acceptor/hybridization propertiesljlk.yamlhbond.yamlgenbonded.yamlscoring parametersIntegration with biotite loading
prepare_ligands=Trueandligand_phparameters topose_stack_from_biotite()canonical_form_from_biotite()to accept a customCanonicalOrderingPacker/rotamer changes
single_residue_kinforest.py: Minimal stub kinforest for non-Dunbrack-eligible residues (ligands, non-alpha polymers)dunbrack_chi_sampler.py: Skip Dunbrack rotamer sampling for ligandsbuild_missing_sidechains.py: Skip sidechain rebuilding for ligand residuesUsage
Tests
test_ligand_pipeline.pycovering:Dependencies
biotite>=1.2(structure I/O)openbabel-wheel==3.1.1.22(atom typing only -- Rosetta AtomTypeClassifier port)rdkit(protonation, MMFF94 charges, SMILES perception)