Commit 54524b0d authored by Adrien Leger's avatar Adrien Leger
Browse files

reduce buffer size

parent 2dfa0fb5
......@@ -11,7 +11,7 @@ import gzip
import HTSeq
# Local imports
from pyDNA.Utilities import is_readable_file, rm_blank, mkdir
from pyDNA.Utilities import is_readable_file
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
class Quade(object):
......@@ -384,8 +384,8 @@ class Sample_writer(object):
self.total_pair += 1
self.current_pair += 1
# If buffers contains more that 1000 sequences, write in file and reset the counter
if self.current_pair >= 1000:
# If buffers contains more that 20 sequences, write in file and reset the counter
if self.current_pair >= 20:
self.flush()
self.current_pair = 0
......
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