Closed Koeng101 closed 6 months ago
Hello @Koeng101 Could you please attach the first example as a file here so I can investigate? When I copy-paste, the content, it seems the header is fine.
The error I get is not relevant to the header:
#slow5_version 0.2.0
#num_read_groups 1
@asic_id 4175987214
#char* uint32_t double double double double uint64_t int16_t* uint64_t int32_t uint8_tdouble enum{unknown,partial,mux_change,unblock_mux_change,data_service_unblock_mux_change,signal_positive,signal_negative} char*
#read_id read_group digitisation offset range sampling_rate len_raw_signal raw_signal start_time read_number start_mux median_before end_reason channel_number
[slow5_rec_parse::ERROR] Raw signal length '5347' does not match the number of signals parsed '3'. Raw signal is potentially truncated. At src/slow5.c:2770
[slow5_rec_parse::ERROR] Missing auxiliary fields in record, but present in header. At src/slow5.c:2793
[slow5_rec_depress_parse::ERROR] Record parsing failed. At src/slow5.c:2600
Uh, I actually can't attach them, because github doesn't like the file extension. Here are where the files are.
I haven't implemented any checks yet, like with auxiliary fields or len_raw_signal.
I'm closing this because I got the command working. I have no idea what I was doing wrong, but sorry about the low quality issue! My apologies!
Here is the file:
The error ("fail to read header") is a bit unhelpful in diagnosing the problem. I also have a larger example that was failing as well, I'll put it at the bottom.
The simple example failing:
The full example failing:
I'm specifically trying to create blow5 files to implement and test a blow5 parser in Golang, on top of / complementing the existing slow5 parser. I'd appreciate knowing what is going wrong in those headers, so I can make the two code-bases a bit more compatible!