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
terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::at #550
Comments
What version of freebayes is this? Does it happen on v1.3.1? If so, would
you please shar a test case?
…On Tue, Jun 18, 2019, 22:53 Sam Hokin ***@***.***> wrote:
Hiya. I've seen a number of issues relating to the terminal error
'std::out_of_range' which in my case included what(): basic_string::at
but I cannot seem to glean what the problem is with my run. I'm calling
against the standard B73v4 maize genome FASTA. My BAM file is sorted by
genomic position. I'm getting variant calls up to
1 3662246 . A G 198.143 . AB=0.212644;ABP=127.808;AC=1;AF=0.5;AN=2;AO=37;CIGAR=1X;DP=174;DPB=174;DPRA=0;EPP=16.2152;EPPR=86.137;GTI=0;LEN=1;MEANALT=3;MQM=34.2162;MQMR=27.1719;NS=1;NUMALT=1;ODDS=45.624;PAIRED=1;PAIREDR=1;PAO=0;PQA=0;PQR=0;PRO=0;QA=1143;QR=3944;RO=128;RPL=24;RPP=10.1116;RPPR=9.79615;RPR=13;RUN=1;SAF=18;SAP=3.06899;SAR=19;SRF=83;SRP=27.5072;SRR=45;TYPE=snp GT:DP:AD:RO:QR:AO:QA:GL 0/1:174:128,37:128:3944:37:1143:-39.1581,0,-193.661
after which the run terminates with the following at the bottom of the -d
output:
allele group S:3662267:1X:A
unknown:A00197:131:HKGFKDSXX:4:1612:13720:8343:snp:1:1:3662267:+:A:3662267:1X:-8.5:-2.5
allele group S:3662267:1X:T
unknown:A00197:131:HKGFKDSXX:4:1470:30454:16564:snp:1:1:3662267:+:T:3662267:1X:-8.5:-8.5|unknown:A00197:131:HKGFKDSXX:4:1322:18484:33035:snp:1:1:3662267:-:T:3662267:1X:-8.5:-8.5|unknown:A00261:128:HGVTKDSXX:4:2353:19750:24298:snp:1:1:3662267:-:T:3662268:1X:-8.5:-2.5|unknown:A00197:131:HKGFKDSXX:4:1474:29749:33505:snp:1:1:3662267:+:T:3662267:1X:-8.5:-8.5|unknown:A00261:128:HGVTKDSXX:4:1657:13413:18051:snp:1:1:3662267:-:T:3662267:1X:-8.5:-2.5|unknown:A00197:131:HKGFKDSXX:4:1470:28067:17628:snp:1:1:3662267:+:T:3662267:1X:-8.5:-8.5|unknown:A00197:131:HKGFKDSXX:4:1116:23041:12461:snp:1:1:3662267:-:T:3662267:1X:-8.5:-2.5
found genotype alleles
filtering genotype alleles which are not supported by at least 2 observations comprising at least 0.05000 of the observations in a single individual
genotype allele: reference:1M:3662267:1:C qsum 5889
reference:1M:3662267:1:C has support of 169 in individual unknown (177 obs) and fraction 0.95480
genotype allele: snp:1X:3662267:1:A qsum 11
genotype allele: snp:1X:3662267:1:T qsum 181
filtered genotype alleles
adding allele to result alleles C
built haplotype alleles, now there are 1 genotype alleles
reference:1M:3662267:1:C
no alternate genotype alleles passed filters at 1:3662267
processing position 3662269 in sequence 1
alignment: A00197:131:HKGFKDSXX:4:1304:9091:13228
position: 1:3662269 coverage: 177
insufficient alternate observations
processing position 3662270 in sequence 1
position: 1:3662270 coverage: 175
insufficient alternate observations
processing position 3662271 in sequence 1
alignment: A00197:131:HKGFKDSXX:4:2644:31548:14450
skipping alignment A00197:131:HKGFKDSXX:4:2644:31548:14450 because it is not marked primary
alignment: A00261:128:HGVTKDSXX:4:2506:21730:12947
alignment: A00197:131:HKGFKDSXX:4:1340:30472:29684
alignment: A00197:131:HKGFKDSXX:4:2314:29577:22592
position: 1:3662271 coverage: 176
insufficient alternate observations
processing position 3662272 in sequence 1
alignment: A00197:131:HKGFKDSXX:4:2153:19407:24111
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::at
Any suggestions on what I can do to get a full variant call to complete?
FWIW, bcftools mpileup works fine with the following command line:
bcftools mpileup -f $FASTA $PREFIX.f2.sorted.bam | bcftools call -mv -Ov -o $PREFIX.f2.sorted.vcf\
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#550>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDQEKUJHFSR34FZTFYI33P3FDN3ANCNFSM4HZDYZ3Q>
.
|
The FASTA can be the maize chromosome 1 FASTA, The BAM file is rather large, 230 GB. I'm not sure how to reliably thin it down to reproduce the problem. If you'd like to download such a big BAM, I can make it available, let me know. Oh, and I'm running |
Take the region of a few kb before the failure until a few kb after the
failure. Try to reproduce using just that BAM. If you can then please share
that.
…On Tue, Jun 18, 2019, 23:27 Sam Hokin ***@***.***> wrote:
$ freebayes --version
version: v1.3.1-12-g06fe585
The FASTA can be the maize chromosome 1 FASTA,
ftp://ftp.ensemblgenomes.org/pub/plants/release-43/fasta/zea_mays/dna/Zea_mays.B73_RefGen_v4.dna.chromosome.1.fa.gz
The BAM file is rather large, 230 GB. I'm not sure how to reliably thin it
down to reproduce the problem. If you'd like to download such a big BAM, I
can make it available, let me know.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#550>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDQEPUETZG767SD53LNYTP3FHNTANCNFSM4HZDYZ3Q>
.
|
Here ya go. I'm calling against the FASTA given above. Reproduces the error. |
Thanks! I'll take a look.
…On Wed, Jun 19, 2019, 21:47 Sam Hokin ***@***.***> wrote:
Here ya go. I'm calling against the FASTA given above.
freebayes-test.bam.gz
<https://github.com/ekg/freebayes/files/3307679/freebayes-test.bam.gz>
Reproduces the error.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#550>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDQEIRZZMGMD5N6F2AVLDP3KENZANCNFSM4HZDYZ3Q>
.
|
This issue is marked stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue was closed for lack of activity. Feel free to re-open if someone feels like working on it. |
hi, i get the same error, i already use the same ref-gemone run with atct.bam file , it work good, but when i try the same code to the gex.bam then raise a error. could you help me? |
Just placing this information here, in case it helps anyone else troubleshoot this error (v1.3.5):
First, attempt to isolate the problematic region, you can see where the last variant call was made in the output and look in that region. We are using a targeted approach so I used @pjotrp I believe the asterisk is legal according to this BAM specification. Therefore, I'd classify this as a bug (assuming I'm correct about the cause). It seems like reasonable behavior would be to simply ignore these "asterisk" SEQs. Here's an example of what these BAM entries look like:
|
Today I also encountered the same issue with freebayes on Single cell data. I checked the last point from Freebayes with the "-d" flag and then looked at that region in the BAM file, and I saw "55M40N22M2I11M11S" in the Cigar tag. It is the only field different than other read positions so the problem might be related to Freebayes not handling this kind of Cigar Tags :/ |
|
@ayavuzcakir, I got this error at version 1.3.6 too |
I am getting the same error too at version 1.3.6 |
Hiya. I've seen a number of issues relating to the terminal error
'std::out_of_range'
which in my case includedwhat(): basic_string::at
but I cannot seem to glean what the problem is with my run. I'm calling against the standard B73v4 maize genome FASTA. My BAM file is sorted by genomic position. I'm getting variant calls up toafter which the run terminates with the following at the bottom of the
-d
output:Any suggestions on what I can do to get a full variant call to complete? FWIW, bcftools mpileup works fine with the following command line:
The text was updated successfully, but these errors were encountered: