PoonLab / covizu

Rapid analysis and visualization of coronavirus genome variation
https://filogeneti.ca/CoVizu/
MIT License
45 stars 20 forks source link

Rect elements not properly scaled #496

Closed GopiGugan closed 7 months ago

GopiGugan commented 9 months ago

Screen Shot 2023-11-15 at 8 59 19 AM

ArtPoon commented 9 months ago

Just to put the above into words, the range of collection dates for this lineage does not line up with the time axis of the tree plot

GopiGugan commented 9 months ago
image

The cutoff slider does not align with the time axis of the tree plot either

GopiGugan commented 8 months ago

Looks like the issue with the xaxis scaling was because we were setting an interval of 365.25 days: https://github.com/PoonLab/covizu/blob/4ab1ba45b919a45d974c0dc58bf64f09c7dfadb1/js/drawtree.js#L163-L167

I've adjusted this now to use an interval based on the earliest and latest collection date of samples from all clusters in the tree

ArtPoon commented 7 months ago

Pending PR