question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Demultiplexer may cause `OSError: [Errno 24] Too many open files` on large sample runs

See original GitHub issue

On 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:closed
  • Created 5 years ago
  • Comments:29 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
peterjccommented, Mar 31, 2020

Wow - the lazy import itself was failing (because the file handle limit had been reached). Nice job debugging this 👍

1reaction
fasteriuscommented, Sep 4, 2019

Okay, cool, thanks for fixing it!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found