This is more apparent when you increase sample size:

Reducing to 10% opacity helps while still preserving an aspect of background:

function highlight_sample(sample) {
setHashParams({'sample': sample})
let d = document.getElementById("gene_plot")
let vals = d.data.map((t, i) => {
if (t.tracktype == "background") {
return [1, 1.5]
}
if (t.tracktype != 'sample') {
return [undefined, undefined]
} else {
if (t.name == sample) {
return [1, 2]
} else {
return [0.10, 0.36]
}
}
})
Plotly.restyle(d, {'opacity': vals.map(i => i[0]), 'line.width': vals.map(i => i[1]), 'hovertemplate': vals.map(i => i[1] > 0.8 ? HOVER_TEMPLATE: null)})
}
Open to community suggestions for fixing cases like NEB.
This is more apparent when you increase sample size:
Reducing to 10% opacity helps while still preserving an aspect of background:
Open to community suggestions for fixing cases like NEB.