labgem / PPanGGOLiN

Build a partitioned pangenome graph from microbial genomes
https://ppanggolin.readthedocs.io
Other
240 stars 28 forks source link

Fix proksee module #246

Closed JeanMainguy closed 3 months ago

JeanMainguy commented 3 months ago

In some cases, modules in the Proksee map were not displayed correctly. For example:

image

This issue arises when a gene overlaps the edge of a contig. For genes and RGPs, this scenario is handled by drawing each piece individually (one starting at the end of the contig and the other beginning at the start of the next). However, this was not implemented for modules, leading to incorrect representations when a gene in a module was split across multiple pieces.

This PR resolves the issue by applying the same logic used for genes and RGPs to modules. Now, modules are accurately drawn even when a gene spans the edge of a contig.

In this example, a gene is overlapping the end of a circular contig. this gene belong to module 217 and this module is drawn correctly folowing the gene:

image