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

Skip paths for which path.to_obg() returns False. #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

cgroza
Copy link

@cgroza cgroza commented Aug 20, 2019

Hi,
I am using graph peak caller on a haplotype indexed whole genome graph.
My vg files contain many paths corresponding to the haplotypes, including the reference path (chr1, chr2, etc).
When using graph_peak_caller find_linear_path to retrieve the reference interval, for some paths obg_interval is assigned to False by path.to_obg(). This results in an error when assigning obg_interval.name to path.name. Therefore, I added a check that skip such paths.

All the instances of this bug involves haplotype paths and not the reference path. This fix allowed me to retrieve my reference intervals without any problems.

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

Successfully merging this pull request may close these issues.

1 participant