Package schrodinger :: Package application :: Package msv :: Package domain :: Module annotation :: Class ProteinAlignmentAnnotations
[hide private]
[frames] | no frames]

Class ProteinAlignmentAnnotations

object --+
         |
        ProteinAlignmentAnnotations

Knows how to annotate an alignment (a collection of aligned sequences)

Nested Classes [hide private]
  ANNOTATION_TYPES
Instance Methods [hide private]
 
__init__(self, aln)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_alnMeanAnnotation(self, annotation_name)
returns: Per-column averages of annotation values specified by annotation_name, or 0.0 if columns includes only gaps.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  ruler
A numbering of all the residue indices in an alignment
  mean_hydrophobicity
returns: A list of floats representing per-column averages of the hydrophobicity of residues in the alignment
  mean_isoelectric_point
returns: A list of floats representing per-column averages of the isoelectric point of residues in the alignment
  consensus_symbols
returns: A string including consensus symbols for each alignment position: short_code if unique residue type is most frequent, '+' if there are multiple equally frequent residues in a column, or '.' if there are only gaps in a column.
  sequence_logo
To create the 'logo' plot, we need frequencies of individual amino acids per alignment position, and overall estimate of column composition diversity ('bits').

Inherited from object: __class__

Method Details [hide private]

__init__(self, aln)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • aln - alignment.Alignment
Overrides: object.__init__

Property Details [hide private]

ruler

A numbering of all the residue indices in an alignment

Get Method:
unreachable.ruler(self) - A numbering of all the residue indices in an alignment

mean_hydrophobicity

returns: A list of floats representing per-column averages of the hydrophobicity of residues in the alignment

Get Method:
unreachable.mean_hydrophobicity(self) - returns: A list of floats representing per-column averages of the hydrophobicity of residues in the alignment

mean_isoelectric_point

returns: A list of floats representing per-column averages of the isoelectric point of residues in the alignment

Get Method:
unreachable.mean_isoelectric_point(self) - returns: A list of floats representing per-column averages of the isoelectric point of residues in the alignment

consensus_symbols

returns: A string including consensus symbols for each alignment position: short_code if unique residue type is most frequent, '+' if there are multiple equally frequent residues in a column, or '.' if there are only gaps in a column.

Get Method:
unreachable.consensus_symbols(self) - returns: A string including consensus symbols for each alignment position: short_code if unique residue type is most frequent, '+' if there are multiple equally frequent residues in a column, or '.' if there are only gaps in a column.

sequence_logo

To create the 'logo' plot, we need frequencies of individual amino acids per alignment position, and overall estimate of column composition diversity ('bits'). This function calculates both measures and returns them as a per-position list of (bits, frequency_dict) tuples.

Get Method:
unreachable.sequence_logo(self) - To create the 'logo' plot, we need frequencies of individual amino acids per alignment position, and overall estimate of column composition diversity ('bits').