tskit-dev / tsviz

Visualisation tools for tree sequences
MIT License
5 stars 3 forks source link

PyGame mouse click interaction #3

Open brianzhang01 opened 4 years ago

brianzhang01 commented 4 years ago

Right now the only interaction is the left and right keys to move between adjacent trees. We could also support mouse clicking on a section of the genome, and switching to that marginal tree.

I would also like to develop some operations of clicking on the tree. Right now, what I'm thinking is that clicking on a part of the tree will highlight / colour the subtree that is below that node / branch. I would additionally like to show in the genomic view how long this tree lasts for -- defined as how long that node continues to be ancestral in the tree sequence, with the exact same set of samples underneath.