Demultiplexer may cause `OSError: [Errno 24] Too many open files` on large sample runs
See original GitHub issueOn large sample count runs (or possibly smaller if the system itself is using a large amount of files at the time of analysis), any pipeline using the Demultiplixer
class may run into an operating system error due to having too many open file descriptors.
This was brought up by a user on the QIIME 2 forum and appears to be identical to the issue that the initial qiime2/q2-demux
implementation was facing that was fixed here.
The way it was solved on QIIME 2’s demultiplexer was by randomly closing X% of the sample files to keep it below the system limit. I would gladly lend a hand in adding a patch and opening a pull request into cutadapt
if you would like.
This issue pertains to any version of cutadapt
that uses these lines.
Issue Analytics
- State:
- Created 5 years ago
- Comments:29 (22 by maintainers)
Top Results From Across the Web
IOError: [Errno 24] Too many open files - python - Stack Overflow
Since the input file is huge I want to read it once only. Also if opening multiple files is supported by python then...
Read more >Plug-in error from cutadat - User Support - QIIME 2 Forum
OSError : [Errno 24] Too many open files: '/dev/null'. During handling of the above exception, another exception occurred:.
Read more >Release Notes — ipyrad documentation
demultiplex.py: Allow very short input fq files. Fix project_dir inconsistency in merged assemblies. Raise an error if setting a bad parameter in API...
Read more >Another "[Errno 24] Too many open files" error - Forum
The experiment works well with a small pool of files (12 images) but when i tried to make quickrun with the real image...
Read more >dereneaton/ipyrad - Gitter
@isaacovercast I am getting the same error about R1 and R2 files not being the ... @isaacovercast So I have successfully demultiplexed my...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow - the lazy import itself was failing (because the file handle limit had been reached). Nice job debugging this 👍
Okay, cool, thanks for fixing it!