Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
b12ef172
Commit
b12ef172
authored
13 years ago
by
Tobias Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
blast binding looks now both for .pin and .pal database file
parent
18e64635
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/bindings/pymod/blast.py
+3
-2
3 additions, 2 deletions
modules/bindings/pymod/blast.py
with
3 additions
and
2 deletions
modules/bindings/pymod/blast.py
+
3
−
2
View file @
b12ef172
...
...
@@ -136,7 +136,8 @@ def Blast(query, database, gap_open=11, gap_ext=1, matrix='BLOSUM62',
:type query: :class:`seq.ConstSequenceHandle`
:param database: The filename of the sequence database. Make sure that
formatdb has been run on the database and the <database>.pin file exists.
formatdb has been run on the database and the <database>.pin or
<database>.pal file exists.
:param matrix: The substitution matrix to be used. Must be one of
'
BLOSUM45
'
,
'
BLOSUM62
'
,
'
BLOSUM80
'
,
'
PAM30
'
,
'
PAM70
'
.
:param gap_open: Gap opening penalty. Note that only a subset of gap opening
...
...
@@ -155,7 +156,7 @@ def Blast(query, database, gap_open=11, gap_ext=1, matrix='BLOSUM62',
subst_mats
=
(
'
BLOSUM45
'
,
'
BLOSUM62
'
,
'
BLOSUM80
'
,
'
PAM30
'
,
'
PAM70
'
,)
if
matrix
not
in
subst_mats
:
raise
ValueError
(
'
matrix must be one of %s
'
%
'
,
'
.
join
(
subst_mats
))
if
not
os
.
path
.
exists
(
'
%s.pin
'
%
database
):
if
not
os
.
path
.
exists
(
'
%s.pin
'
%
database
)
and
not
os
.
path
.
exists
(
'
%s.pal
'
%
database
):
raise
IOError
(
"
Database %s does not exist
"
%
database
)
blastall_exe
=
settings
.
Locate
(
'
blastall
'
,
explicit_file_name
=
blast_location
)
args
=
[
blastall_exe
,
'
-d
'
,
database
,
'
-p
'
,
'
blastp
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment