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

vg pack error #3634

Open
jinshangkun opened this issue Apr 12, 2022 · 2 comments
Open

vg pack error #3634

jinshangkun opened this issue Apr 12, 2022 · 2 comments

Comments

@jinshangkun
Copy link

Hello!
I am trying to use giraffe to genotype structural variants. The commands I used for the constructions:
vg autoindex --workflow giraffe --prefix Gh -R XG --ref-fasta $ref --vcf $vcf -t 10 -T ./
vg giraffe -x $output/Gh.xg -H $output/Gh.giraffe.gbwt -g $output/Gh.gg -m $output/Gh.min -d $output/Gh.dist -f $input/D1_1.fq.gz -f $input/D1_2.fq.gz -t 30 -p 2>$output/log.txt >$output/D1.gam
vg pack -t 30 -Q 5 -x $output/Gh.xg -g $output/D1.gam -o $output/D1.pack
vg call -t 30 -k $output/D1.pack $output/Gh.xg > $output/D1.vcf
But I got an error when running vg call.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
ERROR: Signal 6 occurred. VG has crashed. Visit https://github.com/vgteam/vg/issues/new/choose to report a bug.
Stack trace path: /tmp/vg_crash_6Mbioy/stacktrace.txt

The content of the stacktrace.txt is as follows:
Crash report for vg v1.32.0 "Sedlo"
Stack trace (most recent call last):
#11 Object "", at 0x59fe8d, in
#10 Object "", at 0x1d6d9df, in
#9 Object "", at 0x578414, in
#8 Object "", at 0xb7b91b, in
#7 Object "", at 0xaf9362, in
#6 Object "", at 0x4f1517, in
#5 Object "", at 0x1ca983c, in
#4 Object "", at 0x1ca9686, in
#3 Object "", at 0x1ca961b, in
#2 Object "", at 0x574ec2, in
#1 Object "", at 0x577953, in
#0 Object "", at 0x127feeb, in

Many thanks for any solutions!

@glennhickey
Copy link
Contributor

I suspect it's running out of memory when computing snarls. Can you try

vg snarls $output/Gh.xg > $output/Gh.snarls

then add -r $output/Gh.snarls to the vg call command line?

As an aside @jeizenga is there a way for autoindex to return the snarls index too -- presumably it made one while making the giraffe indexes. It would be handy to have the option to keep around for people who want to use pack/call to genotype SVs after.

@jinshangkun
Copy link
Author

@glennhickey Thanks! I will try it.

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