Skip to content

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

Open

Description

@guo23e

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.

Activity

  1. adamnovak commented on Sep 8, 2025

    @adamnovak
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions