Skip to content

Commit

Permalink
Update rMETL_extraction.py
Browse files Browse the repository at this point in the history
Fix a bug raising "AttributeError".
  • Loading branch information
tjiangHIT authored Jul 16, 2019
1 parent 3f36e23 commit a0f0cb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rMETL_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ def load_sam_multi_processes(args):
analysis_pools.join()
samfile.close()

output_p = args.output if args.output.endswith('/') else "%s/"%(args.output)
output_p = args.output_dir if args.output_dir.endswith('/') else \
"%s/"%(args.output_dir)
if not os.path.exists(output_p):
os.mkdir(output_p)
merge_cmd = ("cat %ssignatures/* > %spotential_ME.fa"%(temporary_dir, output_p))
Expand Down

0 comments on commit a0f0cb7

Please sign in to comment.