Skip to content

vx browse is wrong #5223

@danking

Description

@danking

Describe the bug

vx browse presents the incorrect type.

To Reproduce

Download the statpopgen dataset.

cargo run --profile release --bin query_bench statpopgen --scale-factor 1

Check the type of the GT field:

cargo run --bin vx tree bench-vortex/data/statpopgen/10000/vortex-file-compressed/gnomad.genomes.v3.1.2.hgdp_tgp.chr21.vortex | grep GT:
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s
     Running `target/debug/vx tree bench-vortex/data/statpopgen/10000/vortex-file-compressed/gnomad.genomes.v3.1.2.hgdp_tgp.chr21.vortex`
    GT: vortex.list(list(u64?)?, len=8192) nbytes=9.18 MB (6.74%)
    PGT: vortex.list(list(i32?)?, len=8192) nbytes=396.71 kB (0.29%)
    GT: vortex.list(list(u64?)?, len=1808) nbytes=1.97 MB (4.32%)
    PGT: vortex.list(list(i32?)?, len=1808) nbytes=317.04 kB (0.69%)

Now try to browse to it:

cargo run --bin vx browse bench-vortex/data/statpopgen/10000/vortex-file-compressed/gnomad.genomes.v3.1.2.hgdp_tgp.chr21.vortex

Type / then GT. Hit enter.
Image

╭────────────────────────────────Vortex Browser────────────────────────────────╮
│ File Layout │ Segments                                                       │
│╭Layout Info─────────────────────────────────────────────────────────────────╮│
││Kind: vortex.stats                                                          ││
││Row Count: 10000                                                            ││
││Schema: bool?                                                               ││
││Children: 2                                                                 ││
││Segment data size: 2.02 kB                                                  ││
││Statistics: max min sum null_count                                          ││
││                                                                            ││
││                                                                            ││
│╰────────────────────────────────────────────────────────────────────────────╯│
│╭Child Layouts───────────────────────────────────────────────────────────────╮│
││data                                                                        ││
││zones                                                                       ││
││                                                                            ││
││                                                                            ││
││                                                                            ││
││                                                                            ││
││                                                                            ││
│╰────────────────────────────────────────────────────────────────────────────╯│
╰────press q to quit |  ← to go up a level | ENTER to select | / to search─────╯

Expected behavior

I expected it to be list(list(u64))

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions