Commit 0cb2ecc2 authored by Kautsar, Satria's avatar Kautsar, Satria
Browse files

Verify that domtable is correctly formatted before skipping it

parent d65bd1a0
......@@ -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:
# 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:
task_set = fastaFiles - alreadyDone
if len(task_set) == 0:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment