Skip to content

Commit

Permalink
more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hng committed Mar 23, 2015
1 parent 6681899 commit 6093a1f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/MODELLER/modeller-basic-example-julia/align2d.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using PyCall
@pyimport modeller

env = modeller.environ()
aln = modeller.alignment(env)
mdl = modeller.model(env, file="1bdm", model_segment=("FIRST:A","LAST:A"))
aln[:append_model](mdl, align_codes="1bdmA", atom_files="1bdm.pdb")
aln[:append](file="TvLDH.ali", align_codes="TvLDH")
aln[:align2d]()
aln[:write](file="TvLDH-1bdmA.ali", alignment_format="PIR")
aln[:write](file="TvLDH-1bdmA.pap", alignment_format="PAP")
20 changes: 20 additions & 0 deletions src/MODELLER/modeller-basic-example-julia/evaluate_model.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using PyCall

@pyimport modeller
@pyimport modeller.scripts as scripts
@pyimport _modeller

mod_lib = _modeller.mod_libdir_get()

modeller.log[:verbose]() # request verbose output
env = modeller.environ()
env[:libs][:topology][:read](file=string(mod_lib, "/top_heav.lib")) # read topology
env[:libs][:parameters][:read](file=string(mod_lib, "/par.lib")) # read parameters

# read model file
mdl = scripts.complete_pdb(env, "TvLDH.B99990002.pdb")

# Assess with DOPE:
s = modeller.selection(mdl) # all atom selection
s[:assess_dope](output="ENERGY_PROFILE NO_REPORT", file="TvLDH.profile",
normalize_profile=true, smoothing_window=15)

0 comments on commit 6093a1f

Please sign in to comment.