sequenceTubeMap icon indicating copy to clipboard operation
sequenceTubeMap copied to clipboard

Unexpected token 'I', "Internal S"... is not valid JSON

Open guo23e opened this issue 3 months ago • 1 comments

Hello. I encountered an error.
Unexpected token 'I', "Internal S"... is not valid JSON When I only add the .xg file, it can be output. However, adding the .gbwt file causes the following error. This is the command I used to generate the .gbwt file. vg index -g c244_HA_Chr8A.gbwt c244_HA_Chr8A.vg Could you help me take a look when you have time? Thank you very much.

guo23e avatar Sep 08 '25 13:09 guo23e

I think that vg index -g builds a GCSA2 index, not a GBWT. If you need a GBWT, you would use the vg gbwt subcommand, which is documented at https://github.com/vgteam/vg/wiki/VG-GBWT-Subcommand

To make the GBWT, you probably need a VCF, and a .vg file that was made with the -a option to vg construct.

To fix this bug, we need to add some machinery to detect when what was submitted as a GBWT file isn't actually a GBWT file, and produce a useful error message instead of this kind of internal error.

adamnovak avatar Sep 08 '25 15:09 adamnovak