<p>我有3个python代码,我想一个接一个地自动调用,这样它们就可以在s单次调用中得到最终结果。
如何将这些代码包装成单个脚本?代码是<code>model-multiple.py</code>,<code>align2d.py</code>,<code>model-single.py</code>。在</p>
<p>型号-多个.py是</p>
<pre><code>from modeller import * # Load standard Modeller classes
from modeller.automodel import * # Load the automodel class
log.verbose() # request verbose output
env = environ() # create a new MODELLER environment to build this model in
env.io.atom_files_directory = ['.', '../atom_files']
a = automodel(env,
alnfile = '3NTD_align.ali', # alignment filename
knowns = ('3NTDA'),
sequence = 'target', # code of the target
assess_methods=(assess.DOPE, assess.GA341,assess.normalized_dope))
a.starting_model= 1 # index of the first model
a.ending_model = 1 # index of the last model
# (determines how many models to calculate)
a.make() # do the actual homology modeling
</code></pre>