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

[CLI] sz_split error #139

Open
lborcard opened this issue Apr 15, 2024 · 8 comments
Open

[CLI] sz_split error #139

lborcard opened this issue Apr 15, 2024 · 8 comments
Assignees

Comments

@lborcard
Copy link

Thank you very much for sharing this great project.
I am using the cli tool sz_split and it's stopping after the first split when I specify -n 20 .
It produces only 1 of the 20 files and stops with this error message:

An error occurred: [Errno 0] Error: 'X0'

I am splitting a .fast5 (hdf5 files for sequencing data).
sz_split -n 20 gxb03325_20240327_1204_FAX92537_X5_sequencing_run_no_sample_ac8a3c2b_b3c8a5e7.fast5
best,

Loïc

@ashvardanian
Copy link
Owner

ashvardanian commented Apr 17, 2024

That's interesting, @lborcard, thank you for submitting the issue!
Would it be possible to share the file URL or a simple test case that I can use to replicate the issue?

@ashvardanian ashvardanian self-assigned this Apr 17, 2024
@lborcard
Copy link
Author

lborcard commented Apr 18, 2024

thank your answer, yes I can give you an example file. here is an example: https://s3.amazonaws.com/nanopore-human-wgs/bulkfile/GXB02001_20230509_1250_FAW79338_X3_sequencing_run_NA12878_B1_19382aa5_ef4362cd.fast5

I will try to split and see if I run into the same error.

thanks for your reply

edit: the error is reproducible with the file posted

An error occurred: [Errno 0] Error: 'X0'
Usage example: split.py [-l LINES] [file] [prefix]

@lborcard
Copy link
Author

I am pretty sure that the python split.py does not work with the -n flag because it does work without any flags

@MarkReedZ
Copy link

@lborcard The split works for me. Can you provide details on your machine? OS ?

@MarkReedZ
Copy link

MarkReedZ commented May 15, 2024

We should perhaps use logging.exception or traceback. The error message above just prints the X0 filename - likely due to running out of disk space? Looking at the code its not obvious what possible exception was thrown with the filename as the message.

https://stackoverflow.com/questions/1483429/how-do-i-print-an-exception-in-python

@ashvardanian
Copy link
Owner

@MarkReedZ sounds reasonable.

@lborcard
Copy link
Author

@lborcard The split works for me. Can you provide details on your machine? OS ?
Sorry for the late reply, I am working on centos 8

@lborcard
Copy link
Author

I tested again today after updating to 3.84 and I get the same error message

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