-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error while parsing a custom-format bigbed file #56
Comments
published fix as 4.0.2! the pr autoclosed this but let me know if that helps |
@cmdcolin thank you so much such a quick response! I am happy to report that 4.0.2 fixes the issue for me. BTW, while checking that the fix works, I noticed a couple of typos in a code snippet in the readme: There's a closing backtick missing (first red arrow), and a backslash where it shouldn't be (second red arrow). |
excellent, glad that worked. that syntax should be fixed in the github readme now too |
Hi,
I am getting an error when trying to parse a custom bigbed file that contains 21 columns (
bed4+17
). I am running bbi-js thus:The error message is:
RangeError: Offset is outside the bounds of the DataView
I could trace the code execution down to this line in bbi.ts
bbi-js/src/bbi.ts
Line 202 in ee02414
but then it calls the binary parser, at which point I get lost.
I am providing the problematic bigbed, as well as the source files from which the bigbed was generated. I am not sure whether the problem is with the bigbed file itself or with the bbi-js library; but would like to point out that the bigbed file can be parsed back into bed by the
bigbedToBed
tool, and can also be read by the pyBigWig python library.Attachments:
bedToBigBed -as=transcripts.as -type=bed4+17 transcripts.bed chrom.sizes transcripts.bb
The text was updated successfully, but these errors were encountered: