Skip to content
Snippets Groups Projects
Select Git revision
  • 73cae25bc9bd21775f7a0da3ce2521035a9d4b9e
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

init.py

Blame
  • modelling_steps.py 1001 B
    from ost import io
    from promod3 import modelling, loop
    
    # setup
    merge_distance = 4
    fragment_db = loop.LoadFragDB()
    structure_db = loop.LoadStructureDB()
    torsion_sampler = loop.LoadTorsionSamplerCoil()
    
    # get raw model
    tpl = io.LoadPDB('data/1crn_cut.pdb')
    aln = io.LoadAlignment('data/1crn.fasta')
    aln.AttachView(1, tpl.CreateFullView())
    mhandle = modelling.BuildRawModel(aln)
    
    # we're not modelling termini
    modelling.RemoveTerminalGaps(mhandle)
    
    # perform loop modelling to close all gaps
    modelling.CloseGaps(mhandle, merge_distance, fragment_db,
                        structure_db, torsion_sampler)
    
    # build sidechains
    modelling.BuildSidechains(mhandle, merge_distance, fragment_db,
                              structure_db, torsion_sampler)
    
    # minimize energy of final model using molecular mechanics
    modelling.MinimizeModelEnergy(mhandle)
    
    # check final model and report issues
    modelling.CheckFinalModel(mhandle)
    
    # extract final model
    final_model = mhandle.model
    io.SavePDB(final_model, 'model.pdb')