You are reading the documentation for version 2.3 of OpenStructure. You may also want to read the documentation for:
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.7.1
1.8
1.9
1.10
1.11
2.0
2.1
2.2
2.3.1
devel
|
Parameters: |
|
---|
A3MToCS
(a3m_file, cs_file=None, options={})¶Converts the A3M alignment file to a column state sequence file. If
cs_file is not given, the output file will be set to
<a3m_file
-basename>.seq219.
If the file was already produced, the existing file path is returned without recomputing it.
Parameters: |
|
---|---|
Returns: | Path to the column state sequence file |
Return type: |
|
A3MToProfile
(a3m_file, hhm_file=None)¶Converts the A3M alignment file to a hhm profile. If hhm_file is not
given, the output file will be set to <a3m_file
-basename>.hhm.
The produced HHM file can be parsed by ParseHHM()
.
If the file was already produced, the existing file path is returned without recomputing it.
Parameters: |
|
---|---|
Returns: | Path to the profile file |
Return type: |
|
AssignSSToA3M
(a3m_file)¶HHblits does not assign predicted secondary structure by default. You can optionally assign it with the addss.pl script provided by the HH-suite. However, your HH-suite installation requires you to specify paths to PSIRED etc. We refer to the HH-suite user guide for further instructions.
Parameters: | a3m_file (str ) – Path to file you want to assign secondary structure to |
---|
BuildQueryMSA
(nrdb, options={}, a3m_file=None, assign_ss=True)¶Builds the MSA for the query sequence.
The produced A3M file can be parsed by ParseA3M()
. If the file was
already produced, hhblits is not called again and the existing file path
is returned (neglecting the assign_ss flag!!!).
Parameters: |
|
---|---|
Returns: | The path to the A3M file containing the MSA |
Return type: |
|
Cleanup
()¶Delete temporary data.
Delete temporary data if no working dir was given. Controlled by
needs_cleanup
.
CleanupFailed
()¶In case something went wrong, call to make sure everything is clean.
This will delete the working dir independently of needs_cleanup
.
Search
(a3m_file, database, options={}, prefix='')¶Searches for templates in the given database. Before running the search,
the hhm file is copied. This makes it possible to launch several hhblits
instances at once. Upon success, the filename of the result file is
returned. This file may be parsed with ParseHHblitsOutput()
.
Parameters: |
|
---|---|
Returns: | The path to the result file |
Return type: |
|
HHblitsHit
(hit_id, aln, score, ss_score, evalue, pvalue, prob)¶A hit found by HHblits
hit_id
¶String identifying the hit
Type: | str |
---|
aln
¶Pairwise alignment containing the aligned part between the query and the target. First sequence is the query, the second sequence the target.
Type: | AlignmentHandle |
---|
score
¶The alignment score
Type: | float |
---|
ss_score
¶The secondary structure score
Type: | float |
---|
evalue
¶The E-value of the alignment
Type: | float |
---|
pvalue
¶The P-value of the alignment
Type: | float |
---|
prob
¶The probability of the alignment (between 0 and 100)
Type: | float |
---|
HHblitsHeader
¶Stats from the beginning of search output.
query
¶The name of the query sequence
Type: | str |
---|
match_columns
¶Total of aligned Match columns
Type: | int |
---|
n_eff
¶Value of the -neff
option
Type: | float |
---|
searched_hmms
¶Number of profiles searched
Type: | int |
---|
date
¶Execution date
Type: | datetime.datetime |
---|
command
¶Command used to run
Type: | str |
---|
ParseHHblitsOutput
(output)¶Parses the HHblits output as produced by HHblits.Search()
and returns
the header of the search results and a list of hits.
Parameters: | output (iterable (e.g. an open file handle)) – Iterable containing the lines of the HHblits output file |
---|---|
Returns: | a tuple of the header of the search results and the hits |
Return type: | (HHblitsHeader , list of HHblitsHit ) |
ParseA3M
(a3m_file)¶Parse secondary structure information and the multiple sequence alignment
out of an A3M file as produced by HHblits.BuildQueryMSA()
.
Parameters: | a3m_file (iterable (e.g. an open file handle)) – Iterable containing the lines of the A3M file |
---|---|
Returns: | Dictionary containing “ss_pred” (list ), “ss_conf”
(list ) and “msa” (AlignmentHandle ).
If not available, “ss_pred” and “ss_conf” entries are set to None. |
ParseHHM
(profile)¶Parse secondary structure information and the MSA out of an HHM profile as
produced by HHblits.A3MToProfile()
.
Parameters: | profile (file ) – Opened file handle holding the profile. |
---|---|
Returns: | Dictionary containing “ss_pred” (list ), “ss_conf”
(list ), “msa” (AlignmentHandle ) and
“consensus” (SequenceHandle ).
If not available, “ss_pred” and “ss_conf” entries are set to None. |
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
Parameters: | line (str ) – Line from the output header. |
---|---|
Returns: | Hit information and query/template offsets |
Return type: | (HHblitsHit , (int , int )) |
Enter search terms or a module, class or function name.
blast
- Search related sequences in databases
msms
– Calculating Molecular Surfaces
bindings
– Interfacing external programs
hhblits
- Search related sequences in databases