Skip to main content

PyPangraph

PyPanGraph is a Python package to facilitate analysis of pangraph JSON files.

📄️Bonus: visually untangling graph complexity using junctions

When a whole pangenome graph is exported to GFA and opened in Bandage, the result is usually a tangle. As we saw in the build tutorial, the same accessory or duplicated block can occur in many different genomic contexts, so a single segment ends up linked to many distant parts of the graph. These long-range links are what make the layout look like a hairball. This can be mitigated by filtering out duplicated blocks or even all accessory blocks, but at the cost of losing visualization of the accessory diversity.