exelixis-galaxy
Version:
Interactive phylogenetic tree viewer for the web
41 lines (33 loc) • 806 B
JavaScript
var exe = require("exelixis");
var createTree = exe.createTree;
updateTree = exe.updateTree;
/* Try to change the opts in your console */
opts = {
el : document.getElementById("yourDiv"),
tree : {
data : "(homo_sapiens:12,(mus_musculus:12,(danio_rerio:13,(pan_troglodytes:9,(taeniopygia_guttata:10,callithrix_jacchus:11):12):12):10);",
width : 500,
height : 12,
scale : false,
layoutInput : "vertical",
},
label : {
fontsize : 12,
usePics : true,
pics : {
pictureWidth : 30,
pictureHeight : 40,
},
},
nodes : {
toggle : true, //allows onClickEvent
select: true, //allows selections
size : 5,
fill : "grey",
stroke : "black",
selectedFill : "steelblue",
selectedSize : 4,
},
};
tree = createTree(opts);
//updateTree(tree,opts);