| io = <io_data>  | 
  | 
Options for reading atom files | 
| rr_file = <str:1>  | 
'$(LIB)/as1.sim.mat' | 
input residue-residue scoring file | 
| gap_penalties_1d = <float:2>  | 
900 50 | 
gap creation and extension penalties for sequence/sequence alignment | 
| gap_penalties_2d = <float:9>  | 
3.5 3.5 3.5 0.2 4.0 6.5 2.0 0 0 | 
gap penalties for sequence/structure alignment: helix, beta, accessibility, straightness, and CA-CA distance factor, dst min, dst power, t, structure_profile ; best U,V=-100,0 | 
| align_block = <int:1>  | 
0 | 
the last sequence in the first block of sequences | 
| max_gap_length = <int:1>  | 
999999 | 
maximal length of gap in protein comparisons | 
| off_diagonal = <int:1>  | 
100 | 
to speed up the alignment | 
| matrix_offset = <float:1>  | 
0.00 | 
substitution matrix offset for local alignment | 
| overhang = <int:1>  | 
0 | 
un-penalized overhangs in protein comparisons | 
| local_alignment = <bool:1>  | 
False | 
whether to do local as opposed to global alignment | 
| align_what = <str:1>  | 
'BLOCK' | 
what to align in ALIGN; 'BLOCK' | 'ALIGNMENT' | 'LAST' | 'PROFILE' | 
| subopt_offset = <float:1>  | 
0.0 | 
offset for residue-residue score in getting suboptimals in ALIGN/ALIGN2D | 
| fit = <bool:1>  | 
True | 
whether to align | 
| read_weights = <bool:1>  | 
False | 
whether to read the whole NxM weight matrix for ALIGN* | 
| write_weights = <bool:1>  | 
False | 
whether to write the whole NxM weight matrix for ALIGN* | 
| input_weights_file = <str:1>  | 
'' | 
Exteral weight matrix input to MODELLER (SALIGN/ALIGN) | 
| output_weights_file = <str:1>  | 
'' | 
File into which the weight file is wriiten (iff WRITE_WEIGHTS = 'on') | 
| weigh_sequences = <bool:1>  | 
False | 
whether or not to weigh sequences in a profile | 
| smooth_prof_weight = <float:1>  | 
10 | 
for smoothing the profile aa frequency with a prior | 
| read_profile = <bool:1>  | 
False | 
whether to read str profile for ALIGN2D | 
| input_profile_file = <str:1>  | 
'' | 
multiple sequece alignment read into MODELLER for profile-profile alignments    | 
| write_profile = <bool:1>  | 
False | 
whether to write str profile for ALIGN2D | 
| output_profile_file = <str:1>  | 
'' | 
 | 
- Example: examples/commands/align2d.py
 
-  
# Demonstrating ALIGN2D, aligning with variable gap penalty
from modeller import *
log.verbose()
env = environ()
env.libs.topology.read('$(LIB)/top_heav.lib')
env.io.atom_files_directory = '../atom_files'
# Read aligned structure(s):
aln = alignment(env)
aln.append(file='toxin.ali', align_codes='2ctx')
aln_block = len(aln)
# Read aligned sequence(s):
aln.append(file='toxin.ali', align_codes='1nbt')
 
# Structure sensitive variable gap penalty sequence-sequence alignment:
aln.align2d(overhang=0, gap_penalties_1d=(-100, 0),
            gap_penalties_2d=(3.5, 3.5, 3.5, 0.2, 4.0, 6.5, 2.0, 0., 0.),
            align_block=aln_block)
aln.write(file='align2d.ali', alignment_format='PIR')
aln.write(file='align2d.pap', alignment_format='PAP',
          alignment_features='INDICES HELIX BETA STRAIGHTNESS ' + \
                             'ACCESSIBILITY CONSERVATION')
aln.check()
# Color the first template structure according to gaps in alignment:
aln = alignment(env)
aln.append(file='align2d.ali', align_codes=('2ctx', '1nbt'),
           alignment_format='PIR', remove_gaps=True)
mdl = model(env)
mdl.read(file=aln['2ctx'].atom_file,
         model_segment=aln['2ctx'].range)
mdl.color(aln=aln)
mdl.write(file='2ctx.aln.pdb')
# Color the first template structure according to secondary structure:
mdl.write_data(file='2ctx', output='SSM')
mdl.write(file='2ctx.ssm.pdb')
# Superpose the target structure onto the first template:
mdl2 = model(env)
mdl2.read(file=aln['1nbt'].atom_file,
          model_segment=aln['1nbt'].range)
sel = selection(mdl).only_atom_types('CA')
sel.superpose(mdl2, aln)
mdl2.write(file='1nbt.fit.pdb')