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

Example of using bdsg.bdsg.PositionOverlay #93

Open
RenzoTale88 opened this issue Jan 19, 2021 · 1 comment
Open

Example of using bdsg.bdsg.PositionOverlay #93

RenzoTale88 opened this issue Jan 19, 2021 · 1 comment

Comments

@RenzoTale88
Copy link

Hello,
sorry for opening many issues. I'm trying to work out the problem explained here. In that topic, I've been suggested to use bdsg.bdsg.PositionOverlay() to perform efficient lookup. I'm struggling to understand how to use it though, would it be possible to provide some detailing/example of those?
Thank you in advance
Andrea

@jeizenga
Copy link
Contributor

No worries. The PositionOverlay takes some other graph as an argument to its constructor like overlay = bdsg.bdsg.PositionOverlay(graph). From then on overlay can access graph elements from graph using both graph's existing methods (things like overlay.get_handle()), and also the additional methods from the PathPositionHandleGraph interface (things like overlay.get_path_length() and overlay.get_step_at_position()).

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