Commit 30ffb475 by Eric Coissac

Fix the bug related to FIFO writing on macosx

parent 30b6f5a2
......@@ -11,7 +11,7 @@ from shutil import rmtree
from urllib.request import urlopen
import atexit
import os
#import os
import os.path
import sys
import re
......@@ -20,8 +20,10 @@ from orgasm.utils.dna import reverseComplement # @UnresolvedImport
#from orgasm.files import uopen
import zlib
from collections import Counter, deque
from sys import stderr
#from collections import Counter, deque
from collections import Counter
#from sys import stderr
from orgasm.indexer import Index
......@@ -424,8 +426,8 @@ def writeToFifo(pairs,forward,reverse,logger):"Forward tmp file : %s" % forward)"Reverse tmp file : %s" % reverse)
with open(forward,'w') as f, \
open(reverse,'w') as r:
with open(forward,'w',buffering=1) as f, \
open(reverse,'w',buffering=1) as r:
for p in pairs:
if not i % 1000000:
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