bacpop / PopPUNK

PopPUNK 👨‍🎤 (POPulation Partitioning Using Nucleotide Kmers)
https://www.bacpop.org/poppunk
Apache License 2.0
89 stars 18 forks source link

Add lengths to network edges for visualisation #121

Closed johnlees closed 3 years ago

johnlees commented 3 years ago

Would be a good idea for web front end

nickjcroucher commented 3 years ago

Would this be worth doing in tandem with #87, or is it a purely a change to visualisation (distances would be recalculated anyway)? Could the sparse matrix of within-strain distances be stored?

nickjcroucher commented 3 years ago

A thought that the sparse matrix of within-strain distances would enable lineage calculations to be done, and a PopPIPE-type phylogeny to be constructed very quickly. But on the downside: more hassle.

johnlees commented 3 years ago

Was just discussing this with @Danderson123: he is able to get a graph of the assigned component and display it in the browser, but for many components it's fairly uninformative. It might give a better display of the structure if the included edges had their lengths, rather than just the binary assignment, but I'm not sure without trying.

So at the moment I was thinking of it purely as a visualisation option. I think the distances are usually saved anyway, so it would be a case of annotating the edges with them.