pangenome / pggb

the pangenome graph builder
https://doi.org/10.1101/2023.04.05.535718
MIT License
355 stars 38 forks source link

Converting to a single connected component #310

Open JoshuaDanielRubin opened 1 year ago

JoshuaDanielRubin commented 1 year ago

Hello,

I was wondering, is it possible to ensure that PGGB will produce a graph that has only a single connected component? Alternatively, which parameters can I pass to make it more likely that the resulting graph will have a single connected component?

AndreaGuarracino commented 1 year ago

You can try reducing -s, -l, and -p parameters in order to get more mappings that would keep everything in a single connected component. However, be aware that the alignment will become much slower, and also the next steps.

subwaystation commented 1 year ago

This also assumes that all input sequences can somehow! be aligned to each other in a way that they will form only one single connected component!