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

Constructing graph with ID that doesn't start at 1 can be very slow #30

Closed
jeizenga opened this issue Jun 19, 2019 · 5 comments
Closed

Comments

@jeizenga
Copy link
Contributor

The bottleneck appear to be this loop:
https://github.com/vgteam/odgi/blob/master/src/odgi.cpp#L432

I think it's hurting for a min ID offset to avoid this blow-up.

@ekg
Copy link
Contributor

ekg commented Jun 19, 2019 via email

@ekg
Copy link
Contributor

ekg commented Aug 21, 2019

OK, I'm back to this. Sorry for my earlier confusion.

I'm trying to figure out the best way to handle this. It may be impossible to avoid a translation layer of some kind.

@jeizenga
Copy link
Contributor Author

Hey, if you're going to be developing on the ODGI graph, it might also be a good time to get it moved over to libbdsg. I have a port there, but I've never gotten it fully debugged. My handle evaluation crashes unless I use the odgi::graph_t.

@ekg
Copy link
Contributor

ekg commented Aug 22, 2019

I'm somewhat unsure about this. If graphs of this structure are common, we should just implement a GFA only tool that reduces a larger id space into a smaller one. I'm not sure it's good to implement that here. This tool might also do helpful things like converting back and forth between strings and numerical ids.

@ekg
Copy link
Contributor

ekg commented May 29, 2020

This has been resolved. The problem was graphs starting at a very high minimum node id. This is now supported.

@ekg ekg closed this as completed May 29, 2020
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

2 participants