This is an automated email from the git hooks/post-receive script.

plessy pushed a commit to branch debian/unstable
in repository htslib.

commit d49f20eafc4eeaa945f41fb5a33677971e8d6713
Author: Petr Danecek <[email protected]>
Date:   Wed Dec 4 16:47:01 2013 +0000

    faidx: Detect compressed BGZF fasta files and create .gzi index without 
asking to allow proper functioning of samtools faidx fasta.fa.gz
---
 faidx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/faidx.c b/faidx.c
index 5be4f23..eda8a74 100644
--- a/faidx.c
+++ b/faidx.c
@@ -185,7 +185,9 @@ int fai_build(const char *fn)
                free(str);
                return -1;
        }
+    if ( bgzf->is_compressed ) bgzf_index_build_init(bgzf);
        fai = fai_build_core(bgzf);
+    if ( bgzf->is_compressed ) bgzf_index_dump(bgzf, fn, ".gzi");
        bgzf_close(bgzf);
        fp = fopen(str, "wb");
        if ( !fp ) {

-- 
Alioth's /git/debian-med/git-commit-notice on 
/srv/git.debian.org/git/debian-med/htslib.git

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to