Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing related topic to domibubble #1

Open
ASLeonard opened this issue Apr 12, 2023 · 0 comments
Open

Testing related topic to domibubble #1

ASLeonard opened this issue Apr 12, 2023 · 0 comments

Comments

@ASLeonard
Copy link

Hey Erik,

I was looking at this because bubble gun did not seem to produce sensible bubbles from pggb output. I used a lot of networkx in a previous life, so figured I would just use their strongly connected component algorithm since that is what you were using here.

I can't believe it seems to work, but just changing nx.MultiGraph to nx.DiGraph in pygfa and then finding SCCs actually worked out the box (and only used ~5 Gb and 1 CPU hour for one 100 Mb chromosome with 8 assemblies). Analysing bubbles seems like it will be a common op soon, so just wanted to share that this worked in case it is of any help.

This is a subgraph with gray nodes and recolouring the two SCCs pink and blue.

image

Best,
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant