OpenStructure
Public Member Functions | Data Fields
_Aligner Class Reference

Public Member Functions

def __init__ (self, pep_subst_mat=seq.alg.BLOSUM62, pep_gap_open=-5, pep_gap_ext=-2, nuc_subst_mat=seq.alg.NUC44, nuc_gap_open=-4, nuc_gap_ext=-4, resnum_aln=False)
 
def Align (self, s1, s2, chem_type=None)
 
def NWAlign (self, s1, s2, chem_type)
 
def ResNumAlign (self, s1, s2)
 

Data Fields

 pep_subst_mat
 
 pep_gap_open
 
 pep_gap_ext
 
 nuc_subst_mat
 
 nuc_gap_open
 
 nuc_gap_ext
 
 resnum_aln
 

Detailed Description

Definition at line 1637 of file chain_mapping.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  pep_subst_mat = seq.alg.BLOSUM62,
  pep_gap_open = -5,
  pep_gap_ext = -2,
  nuc_subst_mat = seq.alg.NUC44,
  nuc_gap_open = -4,
  nuc_gap_ext = -4,
  resnum_aln = False 
)
 Helper class to compute alignments

Sets default values for substitution matrix, gap open and gap extension
penalties. They are only used in default mode (Needleman-Wunsch aln).
If *resnum_aln* is True, only residue numbers of views that are attached
to input sequences are considered. 

Definition at line 1638 of file chain_mapping.py.

Member Function Documentation

◆ Align()

def Align (   self,
  s1,
  s2,
  chem_type = None 
)

Definition at line 1656 of file chain_mapping.py.

◆ NWAlign()

def NWAlign (   self,
  s1,
  s2,
  chem_type 
)
 Returns pairwise alignment using Needleman-Wunsch algorithm

:param s1: First sequence to align
:type s1: :class:`ost.seq.SequenceHandle`
:param s2: Second sequence to align
:type s2: :class:`ost.seq.SequenceHandle`
:param chem_type: Must be in [:class:`ost.mol.ChemType.AMINOACIDS`,
                  :class:`ost.mol.ChemType.NUCLEOTIDES`], determines
                  substitution matrix and gap open/extension penalties
:type chem_type: :class:`ost.mol.ChemType`
:returns: Alignment with s1 as first and s2 as second sequence 

Definition at line 1664 of file chain_mapping.py.

◆ ResNumAlign()

def ResNumAlign (   self,
  s1,
  s2 
)
 Returns pairwise alignment using residue numbers of attached views

Assumes that there are no insertion codes (alignment only on numerical
component) and that resnums are strictly increasing (fast min/max
identification). These requirements are assured if a structure has been
processed by :class:`ChainMapper`.

:param s1: First sequence to align, must have :class:`ost.mol.EntityView`
           attached
:type s1: :class:`ost.seq.SequenceHandle`
:param s2: Second sequence to align, must have :class:`ost.mol.EntityView`
           attached
:type s2: :class:`ost.seq.SequenceHandle`

Definition at line 1689 of file chain_mapping.py.

Field Documentation

◆ nuc_gap_ext

nuc_gap_ext

Definition at line 1653 of file chain_mapping.py.

◆ nuc_gap_open

nuc_gap_open

Definition at line 1652 of file chain_mapping.py.

◆ nuc_subst_mat

nuc_subst_mat

Definition at line 1651 of file chain_mapping.py.

◆ pep_gap_ext

pep_gap_ext

Definition at line 1650 of file chain_mapping.py.

◆ pep_gap_open

pep_gap_open

Definition at line 1649 of file chain_mapping.py.

◆ pep_subst_mat

pep_subst_mat

Definition at line 1648 of file chain_mapping.py.

◆ resnum_aln

resnum_aln

Definition at line 1654 of file chain_mapping.py.


The documentation for this class was generated from the following file: