Public
Edited
Feb 1, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
schemeId = {
return NGL.ColormakerRegistry.addScheme(function (params) {
this.atomColor = function (atom) {
if(selected_sites[atom.residue.resno]) {
console.log("# Site: " + atom.residue.resno)
let site_color = "gray"; // gray for Neutral
console.log("Class: " + selected_sites[atom.residue.resno].class)
if (selected_sites[atom.residue.resno].class == "Purifying") {
site_color = "red";
}

if (selected_sites[atom.residue.resno].class == "Diversifying") {
site_color = "blue";
}

if (selected_sites[atom.residue.resno].class == "Invariable") {
site_color = "gray";
}

return color_hash[site_color];
//return color_hash[selected_sites[atom.residue.resno].color];
}
else {
// gray
//return 0x808080;
return color_hash["gray"]
}
}
})
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
inset: 8,
grid: true,
color: {
legend: true,
},
marks: [
Plot.dot(protein_data["raw"], {x: "header", y: "seq_len"})
]
})
Insert cell
Insert cell
tag = "Mammalian"
Insert cell
gene = "BTG2"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more