Commit 94cf7dfe authored by Ryan Herbert's avatar Ryan Herbert

fuse.py tempfile specify mode.

This is mostly for Python3 compatibility. The default mode seems to
differ between Pyton 2 and 3, causing and issue when attempting to run
fuse with Pyton 3
parent 996960ce
......@@ -791,7 +791,7 @@ def main():
for i in range(len(jlist_fused.d["clones"])) :
fasta += ">>" + str(i) + "\n"
fasta += jlist_fused.d["clones"][i].d["id"] + "\n"
fasta_file = tempfile.NamedTemporaryFile(delete=False)
fasta_file = tempfile.NamedTemporaryFile(mode="w", delete=False)
fasta_file.write(fasta)
try:
out = subprocess.check_output([TOOL_SIMILARITY, "-j", fasta_file.name])
......
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