Commit d993275c authored by T-B-F's avatar T-B-F

fix cut_seed.py

parent 4c5fae3f
......@@ -34,11 +34,10 @@ def main():
else:
# storing lines before knowing name of the models, ie name of output
lines.append(line)
if line.startswith("NAME "):
if line.startswith("ACC "):
# get name of the model and create the corresponding output file
tmp = line.split()
name = tmp[1].split(".")[0]
idname = tmp[3]
pathout = os.path.join(params.dirout, name+".hmm")
outf = open(pathout, "w")
for line in lines:
......
Markdown is supported
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