predictosaurus 0.11.3

Uncertainty aware haplotype based genomic variant effect prediction
{
    "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
    "data": {
        "values": {{ paths | json_encode() }}
    },
    "facet": {
        "row": {
            "field": "path",
            "type": "ordinal"
        }
    },
    "spec": {
        "height": 40,
        "encoding": {
            "x": {
                "field": "index",
                "type": "ordinal",
                "axis": null
            }
        },
        "layer": [
            {
                "mark": "rect",
                "encoding": {
                    "color": {
                        "field": "impact",
                        "type": "ordinal",
                        "scale": {
                            "domain": [
                                "High",
                                "Moderate",
                                "Low",
                                "Modifier"
                            ],
                            "range": [
                                "#8B0000",
                                "#E44D2E",
                                "#FBEC5D",
                                "#FFF7C2"
                            ]
                        }
                    },
                    "tooltip": [
                        {
                            "field": "reason",
                            "type": "nominal"
                        },
                        {
                            "field": "consequence",
                            "type": "nominal"
                        }
                    ]
                }
            },
            {
                "mark": "line",
                "encoding": {
                    "y": {
                        "field": "vaf",
                        "type": "quantitative",
                        "scale": {
                            "domain": [0, 1]
                        }
                    },
                    "color": {
                        "field": "sample",
                        "type": "nominal",
                        "scale": {
                            "scheme": "greys"
                        }
                    }
                }
            }
        ],
        "resolve": {
            "scale": {
                "color": "independent",
                "x": "shared"
            }
        }
    },
    "config": {
        "axis": {
            "grid": true,
            "tickBand": "extent"
        }
    }
}