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

Extracting specific path IDs for making subset gfa file #4423

Open
OZTaekOppa opened this issue Oct 23, 2024 · 1 comment
Open

Extracting specific path IDs for making subset gfa file #4423

OZTaekOppa opened this issue Oct 23, 2024 · 1 comment

Comments

@OZTaekOppa
Copy link

OZTaekOppa commented Oct 23, 2024

I’m wondering if there’s a way to extract only specific assemblies from the PGGB-generated GFA file. For example, is it possible to extract just the paths covered by ^HH* and ^NA* to make a subset of a GFA file? Or, do you know any alternative programs (e.g. odgi or gfatools) for this task?

Kind regards,

Taek

@glennhickey
Copy link
Contributor

remove all the but your selected paths with vg paths -r -p <path list file>. Then remove nodes and edges not in paths with vg mod -N.

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