[med-svn] [htslib] 03/10: Fix in bcf regions which in some situations would skip first
Charles Plessy
plessy at moszumanska.debian.org
Sun Oct 5 00:54:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
plessy pushed a commit to branch debian/unstable
in repository htslib.
commit d27ae83d54980334df1ef1f0971fbead6e93da5d
Author: Petr Danecek <pd3 at sanger.ac.uk>
Date: Wed Oct 1 12:57:10 2014 +0100
Fix in bcf regions which in some situations would skip first
the first position on new chromosome in the loci list.
---
synced_bcf_reader.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/synced_bcf_reader.c b/synced_bcf_reader.c
index 19fa703..2062f25 100644
--- a/synced_bcf_reader.c
+++ b/synced_bcf_reader.c
@@ -1034,7 +1034,11 @@ int bcf_sr_regions_seek(bcf_sr_regions_t *reg, const char *seq)
if ( khash_str2int_get(reg->seq_hash, seq, ®->iseq) < 0 ) return -1; // sequence seq not in regions
// using in-memory regions
- if ( reg->regs ) return 0;
+ if ( reg->regs )
+ {
+ reg->regs[reg->iseq].creg = -1;
+ return 0;
+ }
// reading regions from tabix
if ( reg->itr ) tbx_itr_destroy(reg->itr);
--
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