OpenStructure
Data Structures | Functions
ost.bindings.hhblits2 Namespace Reference

Data Structures

class  HHblitsHit
 
class  HHblitsHeader
 
class  HHblits
 

Functions

def ParseHeaderLine (line)
 
def ParseHHblitsOutput (output)
 
def ParseA3M (a3m_file)
 
def ParseHHM (profile)
 

Detailed Description

HHblits wrapper classes and functions.

Function Documentation

◆ ParseA3M()

def ost.bindings.hhblits2.ParseA3M (   a3m_file)
Parse secondary structure information and the multiple sequence alignment 
out of an A3M file as produced by :meth:`HHblits.BuildQueryMSA`.

:param a3m_file: Iterable containing the lines of the A3M file
:type a3m_file: iterable (e.g. an open file handle)

:return: Dictionary containing "ss_pred" (:class:`list`), "ss_conf"
         (:class:`list`) and "msa" (:class:`~ost.seq.AlignmentHandle`).

Definition at line 295 of file hhblits2.py.

◆ ParseHeaderLine()

def ost.bindings.hhblits2.ParseHeaderLine (   line)
Fetch header content.

First, we seek the start of the identifier, that is, the first whitespace
after the hit number + 1. Since the identifier may contain whitespaces
itself, we cannot split the whole line

:param line: Line from the output header.
:type line: :class:`str`

:return: Hit information and query/template offsets
:rtype: (:class:`HHblitsHit`, (:class:`int`, :class:`int`))

Definition at line 117 of file hhblits2.py.

◆ ParseHHblitsOutput()

def ost.bindings.hhblits2.ParseHHblitsOutput (   output)
Parses the HHblits output as produced by :meth:`HHblits.Search` and returns
the header of the search results and a list of hits.

:param output: Iterable containing the lines of the HHblits output file
:type output: iterable (e.g. an open file handle)

:return: a tuple of the header of the search results and the hits
:rtype: (:class:`HHblitsHeader`, :class:`list` of :class:`HHblitsHit`)

Definition at line 148 of file hhblits2.py.

◆ ParseHHM()

def ost.bindings.hhblits2.ParseHHM (   profile)
Parse secondary structure information and the MSA out of an HHM profile as
produced by :meth:`HHblits.A3MToProfile`.

:param profile: Opened file handle holding the profile.
:type profile: :class:`file`

:return: Dictionary containing "ss_pred" (:class:`list`), "ss_conf"
         (:class:`list`), "msa" (:class:`~ost.seq.AlignmentHandle`) and
         "consensus" (:class:`~ost.seq.SequenceHandle`).

Definition at line 369 of file hhblits2.py.