Open andreas-wilm opened 3 years ago
Looks like it's viterbi:
bwa mem -t 8 $reffa $fq1 $fq2 | samtools fixmate - - | lofreq viterbi -f $reffa -b - | samtools sort - -o SRR3924583.fm.vit.srt.bam;
Already fails with
[M::process] read 393840 sequences (80000434 bp)...
fatal.nim(49) sysFatal
Error: unhandled exception: index 816394 not in 0 .. 816393 [IndexDefect]
[bam_sort_core] merging from 7 files and 1 in-memory blocks...
Producing only SRR3924583.fm.bam
for now
Offending sequence is SRR3924583.6445264. See lofreq viterbi -f $reffa -b narrowddown.bam
. Sequence starts at 816,196 with cigar of 165M1D33M53S and according to mpileup ends on 816,394. Ref has 816,394 bases according to fai.
Does LoFreq try to fetch the soft clip?
nimble build --lineDir:on --debuginfo` and `gdb lofreq` to give debug binary
set args viterbi -f /data/refs/NC_000912_Mpneumoniae.fasta -b narrowddown.bam
/home/ubuntu/.nimble/pkgs/cligen-1.4.0/cligen.nim(672) dispatchviterbi
/home/ubuntu/lofreq3.git/src/lofreqpkg/viterbi.nim(218) viterbi
/home/ubuntu/lofreq3.git/src/lofreqpkg/viterbi.nim(60) getRefContext
/home/ubuntu/.choosenim/toolchains/nim-1.4.2/lib/system.nim(2496) []
Error: unhandled exception: index 816394 not in 0 .. 816393 [IndexDefect]