-
Notifications
You must be signed in to change notification settings - Fork 240
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
Expression problems in bcftools view #201
Comments
Hi Fred, can you run |
At the moment, I can't recompile with the latest release. [root@ubccan-hpmysql ~/bcftools]# date Tue Feb 3 08:00:32 PST 2015 [root@ubccan-hpmysql ~]# rm -r bcftools htslib samtools [root@ubccan-hpmysql ~]# git clone --branch=develop git://github.com/samtools/htslib.git Initialized empty Git repository in /root/htslib/.git/ remote: Counting objects: 5654, done. remote: Compressing objects: 100% (19/19), done. remote: Total 5654 (delta 9), reused 4 (delta 1) Receiving objects: 100% (5654/5654), 4.82 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (3591/3591), done. [root@ubccan-hpmysql ~]# git clone --branch=develop git://github.com/samtools/bcftools.git Initialized empty Git repository in /root/bcftools/.git/ remote: Counting objects: 5951, done. remote: Compressing objects: 100% (52/52), done. remote: Total 5951 (delta 24), reused 9 (delta 5) Receiving objects: 100% (5951/5951), 5.54 MiB | 3.18 MiB/s, done. Resolving deltas: 100% (3856/3856), done. [root@ubccan-hpmysql ~]# git clone --branch=develop git://github.com/samtools/samtools.git Initialized empty Git repository in /root/samtools/.git/ remote: Counting objects: 6871, done. remote: Compressing objects: 100% (29/29), done. remote: Total 6871 (delta 10), reused 0 (delta 0) Receiving objects: 100% (6871/6871), 8.53 MiB | 262 KiB/s, done. Resolving deltas: 100% (4017/4017), done. [root@ubccan-hpmysql ~]# cd bcftools/ [root@ubccan-hpmysql ~/bcftools]# make cd ../htslib && make lib-static make[1]: Entering directory `/root/htslib' gcc -g -Wall -O2 -I. -c -o kfunc.o kfunc.c gcc -g -Wall -O2 -I. -c -o knetfile.o knetfile.c gcc -g -Wall -O2 -I. -c -o kstring.o kstring.c gcc -g -Wall -O2 -I. -c -o bgzf.o bgzf.c gcc -g -Wall -O2 -I. -c -o faidx.o faidx.c In file included from faidx.c:33: htslib/faidx.h:94: error: wrong number of arguments specified for ‘__deprecated__’ attribute make[1]: *** [faidx.o] Error 1 make[1]: Leaving directory `/root/htslib' make: *** [../htslib/libhts.a] Error 2 |
It looks like we accidentally ended up with a requirement for gcc 4.5 or newer. Until it is fixed, either use a newer gcc or modify the offending line in htslib/htslib/hts_defs.h. |
Note btw that that's the current develop rather than "the latest release". If you checkout the latest htslib release ( |
Oops, I didn't realise the attribute's message syntax was a late addition. I'll add a pull to fix it for legacy compilers. Sent from my iPhone
The Wellcome Trust Sanger Institute is operated by Genome Research |
OK, compile problems resolved, thanks, but with the attached test file:
It's a RHEL6 linux system. |
Update... I recompiled and re-ran the above commands on a different system under RHEL7... > [root@ubccan-s-tardis bcftools]# uname -a > Linux ubccan-s-tardis.can.ubc.ca 3.10.0-123.13.2.el7.x86_64 #1 SMP Thu Dec 18 14:09:13 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux ...with the same results. Core dump trying to check the ALT field. I then replaced all the "." characters in the ALT column of the vcf file with an "A", and the command completed successfully. Continuing to experiment, I note that the problem does not occur if there is a "." in the REF column, only when there is one in the ALT column. I grant that most vcf files would not contain a "." in the ALT column if they only store variants, but for some downstream statistical purposes I am also storing homozygous reference calls in them, which does put a "." in the ALT column and which is a valid (if uncommon) use. They were, in fact, generated by "bcftools call" with option settings to do so. Perhaps the fact that a "." is a regex wildcard character is contributing to the problem? -- Fred P. |
A test file that can be used to demonstrate this behavior can be found here: |
Thank you for the test case, now fixed. |
That fixed most things, thanks. No segfaults, but
still fails to return rows where there is a “.” in the ALT column of the vcf file. Test file is still at http://ubccan-public.can.ubc.ca/download/test.vcf.gz -- Fred P. From: pd3 [mailto:notifications@github.com] Thank you for the test case, now fixed. — |
This borkage has now been fixed on htslib's develop by samtools/htslib@a233385. |
The text was updated successfully, but these errors were encountered: