Skip to content

Commit

Permalink
Merge pull request #72 from Bioinformatics/HAP-317
Browse files Browse the repository at this point in the history
HAP-317 always check for BCF errors + htslib version bump
  • Loading branch information
Krusche, Peter authored and GitHub Enterprise committed Jun 3, 2017
2 parents 0be231d + e3fb872 commit 8faf71c
Show file tree
Hide file tree
Showing 30 changed files with 188 additions and 144 deletions.
6 changes: 6 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Hap.py Release Notes / Change Log

## v0.3.9

| Ticket | Description |
|---------|------------------------------------------------------------------------------------|
| HAP-317 | Update htslib to 1.4.1 and always check for BCF conversion errors |

## v0.3.8

| Ticket | Description |
Expand Down
1 change: 1 addition & 0 deletions example/haploid/query.vcf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
##fileformat=VCFv4.1
##contig=<ID=chrX>
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA12878
chrX 5 tp A T . PASS . GT 1/1
56 changes: 28 additions & 28 deletions example/happy/test-allelebased.extended.csv

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions example/happy/test-distancebased.extended.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/homref/homref.vcf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##fileformat=VCFv4.1
##FILTER=<ID=PASS,Description="All filters passed">
##INFO=<ID=END,Number=.,Type=Integer,Description="SV end position">
##contig=<ID=21,length=48129895>
##contig=<ID=chr21,length=48129895>
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA12878
chr21 20001394 . C . . PASS END=20001396 GT 0/0
chr21 20001450 . C . . PASS END=20001480 GT 0/0
Expand Down
Binary file modified example/homref/homref.vcf.gz
Binary file not shown.
Binary file modified example/homref/homref.vcf.gz.tbi
Binary file not shown.
2 changes: 1 addition & 1 deletion example/homref/homref2.vcf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##fileformat=VCFv4.1
##FILTER=<ID=PASS,Description="All filters passed">
##INFO=<ID=END,Number=.,Type=Integer,Description="SV end position">
##contig=<ID=21,length=48129895>
##contig=<ID=chr21,length=48129895>
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA12877
chr21 20001394 . C . . PASS END=20001397 GT 0/0
chr21 20001400 . C . . PASS END=20001500 GT 0/0
Expand Down
Binary file modified example/homref/homref2.vcf.gz
Binary file not shown.
Binary file modified example/homref/homref2.vcf.gz.tbi
Binary file not shown.
1 change: 1 addition & 0 deletions example/integration/integrationtest_lhs.vcf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##fileformat=VCFv4.1
##FILTER=<ID=PASS,Description="All filters passed">
##reference=hg19
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##contig=<ID=1,length=249250621>
##contig=<ID=2,length=243199373>
##contig=<ID=3,length=198022430>
Expand Down
1 change: 1 addition & 0 deletions example/integration/integrationtest_rhs.vcf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
##FILTER=<ID=PASS,Description="All filters passed">
##FILTER=<ID=LowGQX,Description="Low GQX">
##FILTER=<ID=HighDPFRatio,Description="DPF Ratio high">
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##reference=hg19
##contig=<ID=1,length=249250621>
##contig=<ID=2,length=243199373>
Expand Down
Binary file modified external/bcftools.tar.gz
Binary file not shown.
Binary file modified external/htslib.tar.gz
Binary file not shown.
17 changes: 10 additions & 7 deletions external/make_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fi

if [ -z "$BOOST_ROOT" ];
then
if [ ! -d ${ISD}/include/boost ];
if [ ! -d ${ISD}/include/boost ];
then
cd ${TLD}
rm -rf ${TLD}/boost_subset_1_58_0
Expand All @@ -57,11 +57,13 @@ then
tar xzf ${DIR}/htslib.tar.gz
cd htslib
./configure --prefix=${ISD} \
CFLAGS=-I${ISD}/include \
CXXFLAGS=-I${ISD}/include \
CFLAGS=-I${ISD}/include\ -g \
CXXFLAGS=-I${ISD}/include\ -g \
LDFLAGS=-L${ISD}/lib \
--disable-plugins \
--disable-libcurl
--disable-libcurl \
--disable-lzma \
--disable-bz2
make -j4
make -j4 install

Expand Down Expand Up @@ -92,13 +94,14 @@ then
rm -rf ${TLD}/samtools
tar xzf ${DIR}/samtools.tar.gz
cd samtools
autoconf -Wno-syntax || autoconf -Wno-syntax
./configure --prefix=${ISD} \
--with-htslib=${TLD}/htslib \
--without-curses \
CFLAGS=-I${ISD}/include \
CPPFLAGS=-I${ISD}/include \
LDFLAGS=-L${ISD}/lib
make -j4
LDFLAGS=-L${ISD}/lib
make -j4
make -j4 install
else
echo "samtools already built. To rebuild, delete ${ISD}/bin/samtools"
Expand Down Expand Up @@ -135,6 +138,6 @@ if [[ ! -z $BUILD_VCFEVAL ]]; then
if [[ -f ${VCFEVAL_WRAPPER} ]]; then
echo "using wrapper for rtg-tools: ${VCFEVAL_WRAPPER}"
cp ${VCFEVAL_WRAPPER} ${ISD}/libexec/rtg-tools-install/rtg-wrapper.sh
chmod +x ${ISD}/libexec/rtg-tools-install/rtg-wrapper.sh
chmod +x ${ISD}/libexec/rtg-tools-install/rtg-wrapper.sh
fi
fi
Binary file modified external/samtools.tar.gz
Binary file not shown.
Loading

0 comments on commit 8faf71c

Please sign in to comment.