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

sqm2zip has stopped working? #813

Closed
dutchscientist opened this issue Mar 14, 2024 · 6 comments
Closed

sqm2zip has stopped working? #813

dutchscientist opened this issue Mar 14, 2024 · 6 comments

Comments

@dutchscientist
Copy link

dutchscientist commented Mar 14, 2024

We are in the middle of doing a lot of samples, and suddenly sqm2zip has stopped working. I have tried it with a dataset working last weekend, and this fails as well.

Ubuntu22, everything up to date. The output is:

(SqueezeMeta) account@computer01:~/data/name/folder$ sqm2zip.py folder folder_output
Traceback (most recent call last):
File "/home/account/miniconda3/envs/SqueezeMeta/bin/sqm2zip.py", line 103, in
main(parse_args())
File "/home/account/miniconda3/envs/SqueezeMeta/bin/sqm2zip.py", line 77, in main
with ZipFile(output, 'w') as outzip:
File "/home/account/miniconda3/envs/SqueezeMeta/lib/python3.10/zipfile.py", line 1240, in init
self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: 'folder_output/folder.zip

Have tried it on two different computers, reinstalled SqueezeMeta in a fresh conda environment, all giving the same problem. Any thoughts on what this could be? :)

@fpusan
Copy link
Collaborator

fpusan commented Mar 14, 2024

Does folder_output exist?
Note that this is not a folder to be created, but an existing folder in which to place the zip file

@fpusan
Copy link
Collaborator

fpusan commented Mar 14, 2024

Also if you plan on relying extensively on sqm2zip be aware that the resulting zip file may not be directly loadable in SQMtools, if the project is very large. The right data is however still there (this is a bug in R rather than in SqueezeMeta) so you can get it back and load it after uncompressing the file.
See more details and workaround in #755.

@dutchscientist
Copy link
Author

Does folder_output exist? Note that this is not a folder to be created, but an existing folder in which to place the zip file

I did that yesterday and it didn't work, and today it works. Must have made a silly typo or so. PEBKAC, I guess...

Thanks for the warning about the large size, I'll make the user aware (ours are ~3.7 GB) :)

@eperezv
Copy link

eperezv commented Mar 29, 2024

Ubuntu22, everything up to date. The output is:

(SqueezeMeta) account@computer01:~/data/name/folder$ sqm2zip.py folder folder_output Traceback (most recent call last): File "/home/account/miniconda3/envs/SqueezeMeta/bin/sqm2zip.py", line 103, in main(parse_args()) File "/home/account/miniconda3/envs/SqueezeMeta/bin/sqm2zip.py", line 77, in main with ZipFile(output, 'w') as outzip: File "/home/account/miniconda3/envs/SqueezeMeta/lib/python3.10/zipfile.py", line 1240, in init self.fp = io.open(file, filemode) FileNotFoundError: [Errno 2] No such file or directory: 'folder_output/folder.zip

I'm having the same issue. I noticed that sqm2zip used a lot of ram (128 Gb was not enough and needed extra ca 80 Gb from swap).

@fpusan
Copy link
Collaborator

fpusan commented Mar 29, 2024

Works for me, but the output directory needs to exist (maybe a bit down, I can fix It in the Next version). So just make sure that folder_output exists.
I didn't expect such a high RAM usage. How many ORFs do you have?
Also do you also see this high RAM usage when running sqm2tables.py on that project?

@eperezv
Copy link

eperezv commented Apr 3, 2024

It is solved after creating the folder_output. Thanks.

I have 18M ORFs. I didn't check when running sqm2tables, I will update after trying

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