next up previous contents index
Next: alignment.segment_matching() align Up: The alignment class: comparison Previous: alignment.salign() align   Contents   Index

alignment.to_profile() -- convert alignment to profile format

to_profile()
This command will convert the alignment, currently in memory, into the profile format. For more details on the profile format, see profile.read().

Example: examples/commands/aln_to_prof.py


from modeller import *
env = environ()

# Read in the alignment file
aln = alignment(env)
aln.append(file='toxin.ali', alignment_format='PIR', align_codes='ALL')

# Convert the alignment to profile format
prf = aln.to_profile()

# Write out the profile

# in text file
prf.write(file='alntoprof.prf', profile_format='TEXT')

# in binary format
prf.write(file='alntoprof.bin', profile_format='BINARY')



Automatic builds 2009-01-30