Tue Nov 6 10:24:14 2018 UTC ()
htslib: updated to 1.9

1.9:
If ./configure fails, make will stop working until either configure is re-run successfully, or make distclean is used. This makes configuration failures more obvious.

The default SAM version has been changed to 1.6. This is in line with the latest version specification and indicates that HTSlib supports the CG tag used to store long CIGAR data in BAM format.

bgzip integrity check option '--test'

Faidx can now index fastq files as well as fasta. The fastq index adds an extra column to the .fai index which gives the offset to the quality values. New interfaces have been added to htslib/faidx.h to read the fastq index and retrieve the quality values. It is possible to open a fastq index as if fasta (only sequences will be returned), but not the other way round.

New API interfaces to add or update integer, float and array aux tags.

Add level=<number> option to hts_set_opt() to allow the compression level to be set. Setting level=0 enables uncompressed output.

Improved bgzip error reporting.

Better error reporting when CRAM reference files can't be opened.

Fixes to make tests work properly on Windows/MinGW - mainly to handle line ending differences.

Efficiency improvements:

Small speed-up for CRAM indexing.

Reduce the number of unnecessary wake-ups in the thread pool.

Avoid some memory copies when writing data, notably for uncompressed BGZF output.

Bug fixes:

Fix multi-region iterator bugs on CRAM files.

Fixed multi-region iterator bug that caused some reads to be skipped incorrectly when reading BAM files.

Fixed synced_bcf_reader() bug when reading contigs multiple times.

Fixed bug where bcf_hdr_set_samples() did not update the sample dictionary when removing samples.

Fixed bug where the VCF record ref length was calculated incorrectly if an INFO END tag was present. (71b00a)

Fixed warnings found when compiling with gcc 8.1.0.

sam_hdr_read() and sam_hdr_write() will now return an error code if passed a NULL file pointer, instead of crashing.

Fixed possible negative array look-up in sam_parse1() that somehow escaped previous fuzz testing.

Fixed bug where cram range queries could incorrectly report an error when using multiple threads.

Fixed very rare rANS normalisation bug that could cause an assertion failure when writing CRAM files.


(adam)
diff -r1.3 -r1.4 pkgsrc/biology/htslib/Makefile
diff -r1.1 -r1.2 pkgsrc/biology/htslib/distinfo

cvs diff -r1.3 -r1.4 pkgsrc/biology/htslib/Makefile (expand / switch to unified diff)

--- pkgsrc/biology/htslib/Makefile 2018/08/22 09:42:59 1.3
+++ pkgsrc/biology/htslib/Makefile 2018/11/06 10:24:14 1.4
@@ -1,32 +1,27 @@ @@ -1,32 +1,27 @@
1# $NetBSD: Makefile,v 1.3 2018/08/22 09:42:59 wiz Exp $ 1# $NetBSD: Makefile,v 1.4 2018/11/06 10:24:14 adam Exp $
2 2
3DISTNAME= htslib-1.8 3DISTNAME= htslib-1.9
4PKGREVISION= 1 
5CATEGORIES= biology 4CATEGORIES= biology
6MASTER_SITES= ${MASTER_SITE_GITHUB:=samtools/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=samtools/}
7GITHUB_PROJECT= htslib 6EXTRACT_SUFX= .tar.bz2
8GITHUB_TAG= ${PKGVERSION_NOREV} 7GITHUB_RELEASE= ${PKGVERSION_NOREV}
9 8
10MAINTAINER= bacon@NetBSD.org 9MAINTAINER= bacon@NetBSD.org
11HOMEPAGE= http://www.htslib.org/ 10HOMEPAGE= http://www.htslib.org/
12COMMENT= C library for high-throughput sequencing data formats 11COMMENT= C library for high-throughput sequencing data formats
13LICENSE= mit 12LICENSE= mit
14 13
15USE_TOOLS+= autoconf automake autoreconf gmake perl 14USE_TOOLS+= gmake perl
16GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
17REPLACE_PERL= test/compare_sam.pl test/test.pl 16CONFIGURE_ARGS+= --enable-libcurl
18 
19SUBST_CLASSES+= version 
20SUBST_STAGE.version= pre-configure 
21SUBST_SED.version= -e "s|m4_esyscmd_s(\[make print-version\])|[${PKGVERSION_NOREV}]|" 
22SUBST_FILES.version= ${WRKSRC}/configure.ac 
23 
24PKGCONFIG_OVERRIDE= htslib.pc.in 17PKGCONFIG_OVERRIDE= htslib.pc.in
 18TEST_TARGET= test
25 19
26pre-configure: 20REPLACE_PERL+= test/compare_sam.pl
27 cd ${WRKSRC} && autoreconf 21REPLACE_PERL+= test/test.pl
28 22
29.include "../../devel/zlib/buildlink3.mk" 
30.include "../../archivers/bzip2/buildlink3.mk" 23.include "../../archivers/bzip2/buildlink3.mk"
31.include "../../archivers/xz/buildlink3.mk" 24.include "../../archivers/xz/buildlink3.mk"
 25.include "../../devel/zlib/buildlink3.mk"
 26.include "../../www/curl/buildlink3.mk"
32.include "../../mk/bsd.pkg.mk" 27.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/biology/htslib/distinfo (expand / switch to unified diff)

--- pkgsrc/biology/htslib/distinfo 2018/04/30 16:51:54 1.1
+++ pkgsrc/biology/htslib/distinfo 2018/11/06 10:24:14 1.2
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.1 2018/04/30 16:51:54 bacon Exp $ 1$NetBSD: distinfo,v 1.2 2018/11/06 10:24:14 adam Exp $
2 2
3SHA1 (htslib-1.8.tar.gz) = bc9dd2ca08de99b0b30bb7f5d64bfa0e8c3d35fd 3SHA1 (htslib-1.9.tar.bz2) = 21be5187203df30637dda2e1133cae2e833ef050
4RMD160 (htslib-1.8.tar.gz) = 400ee0a4994c01e314394bd6a2dceedaa93ec7af 4RMD160 (htslib-1.9.tar.bz2) = 85d5211cc197931e73a0dc7ca0673426f2ff6d89
5SHA512 (htslib-1.8.tar.gz) = 888c815d5b202a624cfc99dfe4f795825defd4dcd2420153314096c8fe79532e0a21e0be6bd3b5a4f86dfa1e7c4524271b3f960ab871812abe5a1961d05d568c 5SHA512 (htslib-1.9.tar.bz2) = ddb0e2d970e4c2c27e203b064898f95cb7c187cd497c02fc7b4312dcea25669d0b6063d537687521e7a065f6daefa1ae897add2df4981037a187b499d08fdef7
6Size (htslib-1.8.tar.gz) = 1262465 bytes 6Size (htslib-1.9.tar.bz2) = 1178859 bytes