The alnsequence class: a single sequence within an alignment
Keywords: manual

Next: alnsequence.code alignment Up: MODELLER command reference Previous: alignment.segment_matching() align Contents Index

#
The `alnsequence` class: a single sequence within an alignment

The `alnsequence` class contains a single sequence from an alignment. `alnsequence` objects can be accessed from an `alignment` object; see Section 6.14 for more details.

Example: examples/python/alnsequence.py

      # Example for alnsequence objects

      from modeller import *

      env = environ()

      aln = alignment(env, file='../commands/toxin.ali')
      print "Alignment contains %d sequences:" % len(aln)
      for seq in aln:
          print "   Sequence %s from %s contains %d residues" \
                % (seq.code, seq.source, len(seq))

Subsections

- alnsequence.code -- alignment code
- alnsequence.atom_file -- PDB file name
- alnsequence.source -- source organism
- alnsequence.name -- protein name
- alnsequence.prottyp -- protein sequence type
- alnsequence.residues -- list of residues
- alnsequence.transfer_res_prop() -- transfer residue properties
- alnsequence.get_num_equiv() -- get number of equivalences
- alnsequence.get_sequence_identity() -- get sequence identity