Skip to content

Add coordinate mapping to the VcfModelMap #3173

Closed

Description

@jeromekelleher

The new map_vcf_model is great for downstream users of the data as it tells us how individuals map to "samples" under various scenarios. Another quirky thing about tskit (from VCF's perspective) is the allowance for 0 and continuous coordinates. We deal with this in tskit write_vcf by various tricks, and it would be nice if we didn't have to do all that again in bio2zarr.

Is there any reason we can't put the coordinate mapping logic into the map_vcf_model function as well? We're returning a data class, so there's no problem in adding another array in there (which would presumably be an int64 array of the mapped coordinates).

Any thoughts @benjeffery?

Activity

  1. added
    enhancement
    on May 22, 2025
  2. benjeffery commented on May 23, 2025

    @benjeffery
    Member

    Happy to put up a quick follow up release if we want this for bio2zarr.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions