[med-svn] [htslib] 02/06: Fixed out by one error in bin calculation (CRAM -> BAM).
Andreas Tille
tille at debian.org
Fri Nov 4 11:54:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch debian/unstable
in repository htslib.
commit 9c230e7c9162fb1632ca03bc5c8f34345eddfca2
Author: James Bonfield <jkb at sanger.ac.uk>
Date: Tue May 17 15:17:32 2016 +0100
Fixed out by one error in bin calculation (CRAM -> BAM).
Fixes samtools/samtools#574
(cherry picked from commit e5ab99785bb8ec5a5054d6c6a2c432bdd8ee5ef1)
---
cram/cram_samtools.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cram/cram_samtools.c b/cram/cram_samtools.c
index 9e95c7b..60a7b5f 100644
--- a/cram/cram_samtools.c
+++ b/cram/cram_samtools.c
@@ -90,7 +90,7 @@ int bam_construct_seq(bam_seq_t **bp, size_t extra_len,
b->core.tid = rname;
b->core.pos = pos-1;
- b->core.bin = bam_reg2bin(pos, end);
+ b->core.bin = bam_reg2bin(pos-1, end);
b->core.qual = mapq;
b->core.l_qname = qname_len+1;
b->core.flag = flag;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htslib.git
More information about the debian-med-commit
mailing list