vgteam / sequenceTubeMap

displays multiple genomic sequences in the form of a tube map
MIT License
180 stars 25 forks source link

Improve Read Cycle Layout #389

Closed ducku closed 8 months ago

ducku commented 9 months ago

Segments cycling on the first node had strange interactions since segments classified as "outgoing"(if its pathIndex == 0) had different methods of sorting.

Changes are made to how reads are placed outside of nodes when a cycle is detected, and inside of nodes when reads have the same source and destination Node.

Cycle1

Cycle2

Closes #321

ducku commented 8 months ago

Changing to sort the first segment by existing y values first works better on this set of data, and I think it would work better overall.

I'm currently trying to make an example dataset showcasing this.

Cycle1 Cycle2

adamnovak commented 8 months ago

That's looking pretty good!

I guess in the second image it would be better if those reads on the inside coming down stayed on the inside when turning to go left, instead of going all the way down and coming left on the outside. But this is much cleaner than before.