Package schrodinger :: Package application :: Package msv :: Package io :: Module seqio :: Class BaseProteinAlignmentReader
[hide private]
[frames] | no frames]

Class BaseProteinAlignmentReader

object --+
         |
        BaseProteinAlignmentReader
Known Subclasses:

Base class for reading protein sequence alignments from files.

Instance Methods [hide private]

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

Class Methods [hide private]
ProteinAlignment
read(cls, file_name)
Returns alignment read from file in Clustal *.aln format preserving order of sequences.
Static Methods [hide private]
ProteinAlignment
_makeProteinAlignment(sequences)
Helper function that creates ProteinAlignment from a dictionary of sequence elements and list of sequence names.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_makeProteinAlignment(sequences)
Static Method

 

Helper function that creates ProteinAlignment from a dictionary of sequence elements and list of sequence names.

Parameters:
  • sequences (collections.OrderedDict) - Ordered dictionary of sequence elements.
  • AlnClass (alignment.ProteinAlignment) - The Alignment class to use in constructing alignments
Returns: ProteinAlignment
Protein alignment.

read(cls, file_name)
Class Method

 

Returns alignment read from file in Clustal *.aln format preserving order of sequences.

Parameters:
  • file_name (str) - Source file name.
  • file_name (str) - Source file name.
Returns: ProteinAlignment
An alignment
Raises:
  • IOError - If output file cannot be read.

Note: The alignment can be empty if no sequence was present in the input file.