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

Generating a Clipped/Filtered Graph from a {graph_name}.full.gbz file #1540

Open
EEEdyeah opened this issue Nov 23, 2024 · 2 comments
Open

Comments

@EEEdyeah
Copy link

Hello,

I have {graph_name}.full.gbz files generated from Cactus Minigraph to map short-read data. According to the tutorial, a filtered graph is more efficient for vg giraffe. Additionally, I noticed that Haplotype Sampling is a better option for vg giraffe, requiring a clipped .gbz graph and a .hapl file.

How can I generate the filtered/clipped version of the graph and haplotypes without having access to the original input files?

I tried the following steps but am not sure if they are correct: (I only have full.hal full.gbz. full.gfa files)
vg convert -g <(gunzip -c {graph_name}.full.gfa.gz) > {graph_name}.full.vg
cactus-graphmap-join --vg {graph_name}.full.vg --hal {graph_name}.full.hal --giraffe clip ...

Any suggestions or corrections to this approach would be greatly appreciated. :)

@zhangyixing3
Copy link

zhangyixing3 commented Nov 23, 2024

Hi, I think it will help you a litter #1469. I generated filtered graph from clipped graph and I wanted to perform vg giraffe with different filtered graph.

@EEEdyeah
Copy link
Author

@zhangyixing3 Thanks! I was wondering, why do you use [vg clip] multiple times instead of putting all the parameters into a single command? Also, I noticed the first vg clip used -d 2, while the second one used -d 1. What would happen if I wanted to use -d 10 instead?

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