Closed ryandkuster closed 2 weeks ago
It looks to me like this is a problem with vg validate
, not vg giraffe
. The read and reference bases are both N, and we generally don't consider two N's to be "matching", since N is only used as a placeholder for an unknown base. I think you should be able to use the GAM file without issues.
@jeizenga Thanks for the quick response!
That's reassuring that the alignments may in fact be valid. The .gam files were my first step in troubleshooting a vg pack
error that has been cropping up in only a small percentage of my samples.
I've been running into an error that usually takes the following form:
vg: src/packer.cpp:883: size_t vg::Packer::average_node_quality(size_t) const: Assertion `total_node_quality(i) == 0' failed.
━━━━━━━━━━━━━━━━━━━━
Crash report for vg v1.59.0 "Casatico"
Stack trace (most recent call last) in thread 2437524:
#10 Object "", at 0xffffffffffffffff, in
#9 Object "vg", at 0x21e9173, in __clone
#8 Object "vg", at 0x214269a, in start_thread
#7 Object "vg", at 0x20e4f2d, in gomp_thread_start
#6 Object "vg", at 0x1291d70, in vg::Packer::make_compact() [clone ._omp_fn.6]
#5 Object "vg", at 0x129167f, in vg::Packer::average_node_quality(unsigned long) const
#4 Object "vg", at 0x2110e95, in __assert_fail
#3 Object "vg", at 0x5ee653, in __assert_fail_base.cold
#2 Object "vg", at 0x5ee72b, in abort
#1 Object "vg", at 0x21174a5, in raise
#0 Object "vg", at 0x2143ffc, in __pthread_kill
ERROR: Signal 6 occurred. VG has crashed. Visit https://github.com/vgteam/vg/issues/new/choose to report a bug.
Please include this entire error log in your bug report!
━━━━━━━━━━━━━━━━━━━━
I'm following a few of the troubleshooting steps suggested in #4355 , which may not be identical to my own but I didn't want to open a new issue if the alignment was the cause.
1. What were you trying to do?
Align illumina short reads with vg giraffe to produce a gam for pack/call steps.
2. What did you want to happen?
I wanted a valid .gam file.
3. What actually happened?
The resulting .gam file is invalid.
4. If you got a line like
Stack trace path: /somewhere/on/your/computer/stacktrace.txt
, please copy-paste the contents of that file here:Running
vg validata -a
on the .gam and graph used for alignment yields the following type of message for many samples:5. What data and command can the vg dev team use to make the problem happen?
The pangenome was built per-chromosome with PGGB. At the various stages of converting to .og and .gfa both
odgi validate
andvg validate
give no errors. The vg giraffe step has also been aligned using the XG graph and a .gbz produced without the --vg-algorithm conversion.6. What does running
vg version
say?If there are any troubleshooting steps I should consider or steps to modify I would appreciate any advice. I thank you all sincerely for your time and effort with vg!