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

Issue with vg call Generating VCF File for HBV Pangenome #4442

Open
lihuanhuan20000 opened this issue Nov 12, 2024 · 1 comment
Open

Issue with vg call Generating VCF File for HBV Pangenome #4442

lihuanhuan20000 opened this issue Nov 12, 2024 · 1 comment

Comments

@lihuanhuan20000
Copy link

PLEASE DO NOT MAKE SUPPORT REQUESTS HERE
Hello, I used pggb to construct a pangenome for HBV, and then used vg (v1.60.0) to call variants and generate the consensus sequence. However, I encountered some issues.

My commands were as follows:
vg giraffe -Z .giraffe.gbz -m .min -d .dist -f HBV.fastq > sample.gam
vg surject -x .xg sample.gam -b > sample_surjected.bam
vg convert .xg -p > .pg
vg snarls .pg > .snarls
vg pack -x .pg -g sample.gam -o .pack
vg call .pg -r .snarls -k .pack -s sample > sample_all.vcf
The problem is that the generated VCF file contains only one path in the #CHROM column, not all of the paths. However, when I run:
vg call .pg -r .snarls -k .pack -s sample -p path_reference > sample_reference.vcf
it generates the VCF with the corresponding path. If I use -p path1 -p path2, only one path's variant information is output.

I don't understand why the variant information for all paths isn't being generated. Could you please help clarify what might be causing this?

Additionally, since some of my HBV samples are recombinant types, how should I handle consensus sequence generation in such cases? Specifically, how can I manage recombinant variants when generating the consensus sequence?

Thank you!

Please the Biostars forum instead:

https://www.biostars.org/new/post/?tag_val=vg

@glennhickey
Copy link
Contributor

what is the output of vg paths -Lx graph.gbz ?

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