Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
adrien
Quade
Commits
54524b0d
Commit
54524b0d
authored
Jan 31, 2015
by
Adrien Leger
Browse files
reduce buffer size
parent
2dfa0fb5
Changes
1
Show whitespace changes
Inline
Side-by-side
quade.py
View file @
54524b0d
...
...
@@ -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
100
0 sequences, write in file and reset the counter
if
self
.
current_pair
>=
100
0
:
# If buffers contains more that
2
0 sequences, write in file and reset the counter
if
self
.
current_pair
>=
2
0
:
self
.
flush
()
self
.
current_pair
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment