Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
var3d
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
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
var3d
Commits
01d2ac18
Commit
01d2ac18
authored
2 years ago
by
Bienchen
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into feature-modelcif
parents
d9b13702
f758d66d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_provean_anno.py
+11
-1
11 additions, 1 deletion
tests/test_provean_anno.py
var3d/var_seq_anno.py
+5
-1
5 additions, 1 deletion
var3d/var_seq_anno.py
with
16 additions
and
2 deletions
tests/test_provean_anno.py
+
11
−
1
View file @
01d2ac18
...
...
@@ -19,7 +19,7 @@ class TestProveanAnno(unittest.TestCase):
self
.
nrdb_prefix
=
"
nr
"
self
.
nrdb
=
os
.
path
.
join
(
self
.
nrdb_dir
,
self
.
nrdb_prefix
)
os
.
makedirs
(
self
.
nrdb_dir
)
open
(
self
.
nrdb
,
"
a
"
).
close
()
open
(
self
.
nrdb
,
'
a
'
).
close
()
# generate fake executables
self
.
provean_exe
=
os
.
path
.
join
(
self
.
tmp_dir
.
name
,
"
provean
"
)
...
...
@@ -66,6 +66,16 @@ class TestProveanAnno(unittest.TestCase):
cdhit_exe
=
self
.
cdhit_exe
,
blastdbcmd_exe
=
self
.
blastdbcmd_exe
,
)
# try only with nrdb dir but without prefix
with
self
.
assertRaises
(
ValueError
):
ProveanVarSeqAnno
(
self
.
nrdb_dir
,
tmp_dir
=
self
.
tmp_dir
.
name
,
provean_exe
=
self
.
provean_exe
,
psiblast_exe
=
self
.
psiblast_exe
,
cdhit_exe
=
self
.
cdhit_exe
,
blastdbcmd_exe
=
self
.
blastdbcmd_exe
,
)
ProveanVarSeqAnno
(
self
.
nrdb
,
tmp_dir
=
self
.
tmp_dir
.
name
,
...
...
This diff is collapsed.
Click to expand it.
var3d/var_seq_anno.py
+
5
−
1
View file @
01d2ac18
...
...
@@ -96,7 +96,11 @@ class ProveanVarSeqAnno(VarSeqAnno):
f
"
not exist (
{
self
.
blast_nrdb_dirname
}
)
"
)
blast_files
=
os
.
listdir
(
self
.
blast_nrdb_dirname
)
n
=
sum
([
f
.
startswith
(
self
.
blast_nrdb_prefix
)
for
f
in
blast_files
])
n
=
0
for
f
in
blast_files
:
if
f
.
startswith
(
self
.
blast_nrdb_prefix
)
and
\
os
.
path
.
isfile
(
os
.
path
.
join
(
self
.
blast_nrdb_dirname
,
f
)):
n
+=
1
if
n
==
0
:
raise
ValueError
(
f
"
No files starting with expected prefix
"
...
...
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