Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG : too many open files when splitting on mac #77

Open
amnona opened this issue Aug 30, 2016 · 6 comments
Open

BUG : too many open files when splitting on mac #77

amnona opened this issue Aug 30, 2016 · 6 comments
Milestone

Comments

@amnona
Copy link
Contributor

amnona commented Aug 30, 2016

Got this from a user:
ANOTHER ERROR ( ONLY solution seems to be to divide the file up into pieces)

(deblurenv)MacQIIME dhcp238­043:~ $ deblur workflow ­­seqs­fp

/Volumes/Samsung_T1/MadaRaw/Mada_AS13JF14ND14_Splitlib_r3n0p.90q5/Mada_AS13JF14ND14_Splitlib_r3n0p.90q5_seqs250_254new.fasta

­­output­dir Madajul16_deblurtest ­O 3

Traceback (most recent call last):

File "/macqiime/anaconda/envs/deblurenv/bin/deblur", line 621, in

deblur_cmds()

File "/macqiime/anaconda/envs/deblurenv/lib/python3.5/site­packages/click/core.py", line 716, in call

return self.main(_args, *_kwargs)

File "/macqiime/anaconda/envs/deblurenv/lib/python3.5/site­packages/click/core.py", line 696, in main

rv = self.invoke(ctx)

File "/macqiime/anaconda/envs/deblurenv/lib/python3.5/site­packages/click/core.py", line 1060, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))

File "/macqiime/anaconda/envs/deblurenv/lib/python3.5/site­packages/click/core.py", line 889, in invoke

return ctx.invoke(self.callback, **ctx.params)

File "/macqiime/anaconda/envs/deblurenv/lib/python3.5/site­packages/click/core.py", line 534, in invoke

return callback(_args, *_kwargs)

File "/macqiime/anaconda/envs/deblurenv/bin/deblur", line 561, in workflow

out_dir_split)

File "/macqiime/anaconda/envs/deblurenv/lib/python3.5/site­packages/deblur/workflow.py", line 445, in

split_sequence_file_on_sample_ids_to_files

outputs[sample] = open(join(outdir, sample + '.fasta'), 'w')

OSError: [Errno 24] Too many open files: '/Users/venceslab/Madajul16_deblurtest/split/J8.3.fasta'

@wasade
Copy link
Member

wasade commented Aug 30, 2016

Or a smarter algorithm for partitioning a single fasta file in which fewer handles are open at a time. Probably could be done with a heap where the files which haven't been written too recently get closed, and reopened if needed

@josenavas
Copy link
Member

Probably using a "pool" of file handles that we open/close as needed.

@wasade
Copy link
Member

wasade commented Feb 4, 2017

This still appears to be an issue. @amnona is there a trajectory toward a resolution here?

Note: this is not an issue when driven from qiime2, and so one strategy we can undertake is just actively recommend users leverage the plugin.

@wasade wasade added this to the version 1.0 milestone Feb 4, 2017
@amnona
Copy link
Contributor Author

amnona commented Feb 7, 2017

i think this will be left for version 2. currently mac users can split using qiime or qiime2?

@wasade
Copy link
Member

wasade commented Feb 7, 2017

Please note in the README

@amnona
Copy link
Contributor Author

amnona commented Feb 7, 2017

added in troubleshooting section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants