You are reading the documentation for version 1.9 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.10
1.11
2.0
2.1
2.2
2.3
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 A3M 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: |
|
BuildQueryMSA
(nrdb, options={}, a3m_file=None)¶Builds the MSA for the query sequence.
This function directly uses hhblits of hhtools. While in theory it would be possible to do this by PSI-blasting on our own, hhblits is supposed to be faster. Also it is supposed to prevent alignment corruption. The alignment corruption is caused by low-scoring terminal alignments that draw the sequences found by PSI-blast away from the optimum. By removing these low scoring ends, part of the alignment corruption can be suppressed.
hhblits does not call PSIPRED on the MSA to predict the secondary structure of the query sequence. This is done by addss.pl of hhtools. The predicted secondary structure is stored together with the sequences identified by hhblits.
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.
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 ). |
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 ). |
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