You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to parse a simple vcf to count the number of instances in a specific range. I believe I have followed the ReadMe example fairly closely (forgive me if it is a simple mistake, I'm new to javascript). Here is my current code:
Hello, and thanks for using tabix-js! Sorry if the readme code isn't very clear. It's some example code, but isn't something that you can just run (although we should perhaps make it that way...). Anyway, the problem you're running into is that await must be used inside a function, it can't be used in "top-level" code. So something like this should work:
Thank you, it works perfectly! Also on a side note, I've tried several VCF parsers for javascript (I usually code in python), and yours was the most intuitive for me.
Hello,
I'm trying to parse a simple vcf to count the number of instances in a specific range. I believe I have followed the ReadMe example fairly closely (forgive me if it is a simple mistake, I'm new to javascript). Here is my current code:
However I get the following error message
Any help is appreciated, thank you!
The text was updated successfully, but these errors were encountered: