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

Add ability to list reference and haplotype paths #4085

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Conversation

adamnovak
Copy link
Member

Changelog Entry

To be copied to the draft changelog by merger:

  • vg paths now supports -H for selecting haplotype paths and -R for selecting reference paths

Description

When listing or removing paths with vg paths, we were able to ask for the generic paths, but not for other kinds of paths. Now we can ask for each of the three path types separately or in any combination. If none of the options are specified, we get all path types (the default).

@adamnovak adamnovak merged commit 89eefd9 into master Sep 18, 2023
2 checks passed
@netwon123
Copy link

It is equal to the function 'vg convert -H' in v1.49?

@adamnovak
Copy link
Member Author

I think the sense is reversed; vg convert -H is vg convert --drop-haplotypes, while vg paths -H is vg paths --haplotype-paths.

I think you can now use vg paths to get a graph without the haplotype paths in it, like vg convert -H, but you can also now use vg paths to e.g. get a list of the haplotype paths.

We might want to remove one of the two ways to do the same thing here?

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.

2 participants