gosling-lang / gosling.js

Grammar of Scalable Linked Interactive Nucleotide Graphics

Home Page:https://gosling.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect `DISTPREV` after chr 1 in VCF data

sehilyi opened this issue · comments

Screenshot 2023-07-21 at 11 34 52

{
   "tracks":[
      {
         "id":"SRR7890905-mid-mutation",
         "title":"Point Mutation",
         "style":{
            "background":"#FFFFFF",
            "inlineLegend":true
         },
         "data":{
            "type":"vcf",
            "url":"https://somatic-browser-test.s3.amazonaws.com/SNV_test_tumor_normal_with_panel.vcf.gz",
            "indexUrl":"https://somatic-browser-test.s3.amazonaws.com/SNV_test_tumor_normal_with_panel.vcf.gz.tbi",
            "sampleLength":500
         },
         "dataTransform":[
            {
               "field":"DISTPREV",
               "type":"filter",
               "oneOf":[
                  0
               ],
               "not":true
            }
         ],
         "mark":"point",
         "x":{
            "field":"POS",
            "type":"genomic"
         },
         "color":{
            "field":"SUBTYPE",
            "type":"nominal",
            "legend":true,
            "domain":[
               "C>A",
               "C>G",
               "C>T",
               "T>A",
               "T>C",
               "T>G"
            ]
         },
         "y":{
            "field":"DISTPREVLOGE",
            "type":"quantitative",
            "axis":"left",
            "range":[
               10,
               50
            ]
         },
         "opacity":{
            "value":0.9
         },
         "tooltip":[
            {
               "field":"DISTPREV",
               "type":"nominal",
               "format":"s1",
               "alt":"Distance To Previous Mutation (BP)"
            },
            {
               "field":"POS",
               "type":"genomic"
            },
            {
               "field":"SUBTYPE",
               "type":"nominal"
            }
         ],
         "width":680,
         "height":60
      }
   ]
}