Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
medema-group
BiG-SCAPE
Commits
0cb2ecc2
Commit
0cb2ecc2
authored
Aug 06, 2018
by
Kautsar, Satria
Browse files
Verify that domtable is correctly formatted before skipping it
parent
d65bd1a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
bigscape.py
View file @
0cb2ecc2
...
...
@@ -2442,7 +2442,14 @@ if __name__=="__main__":
outputbase
=
"."
.
join
(
fasta
.
split
(
os
.
sep
)[
-
1
].
split
(
"."
)[:
-
1
])
outputfile
=
os
.
path
.
join
(
domtable_folder
,
outputbase
+
'.domtable'
)
if
os
.
path
.
isfile
(
outputfile
)
and
os
.
path
.
getsize
(
outputfile
)
>
0
:
alreadyDone
.
add
(
fasta
)
# verify domtable content
with
open
(
outputfile
,
"r"
)
as
domtablefile
:
for
line
in
domtablefile
.
readlines
():
if
line
.
startswith
(
"# Option settings:"
):
linecols
=
line
.
split
()
if
"hmmscan"
in
linecols
and
"--domtblout"
in
linecols
:
alreadyDone
.
add
(
fasta
)
break
task_set
=
fastaFiles
-
alreadyDone
if
len
(
task_set
)
==
0
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment