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

decompress error #18

Open
ruizgo opened this issue Dec 8, 2023 · 2 comments
Open

decompress error #18

ruizgo opened this issue Dec 8, 2023 · 2 comments

Comments

@ruizgo
Copy link

ruizgo commented Dec 8, 2023

command:

unnaf --fastq fastq.gz.naf |gzip - >fastq.gz.naf.gz
unnaf error: can't allocate 35115481985 bytes

file size:
fastq.gz.naf 43G

@ruizgo
Copy link
Author

ruizgo commented Dec 8, 2023

My PC memory:96G

@KirillKryukov
Copy link
Owner

KirillKryukov commented Dec 9, 2023

One possibly related issue is that currently unnaf uses memory quite inefficiently for fastq decompression. Namely, the decompressor stores the entire compressed sequence in memory, while streaming qualities. This was done for speed and simplicity, but may result in problems when decompressing huge fastq datasets. We will address this in the future, hopefully soon. In the meantime, large fastq files can be divided into smaller parts before compressing. In your case, I think your RAM should be more than enough, so there may be something else.

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

2 participants