Skip to content

Commit

Permalink
v0.1.8: fix tabix index error for variants at position 1 of contigs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanb committed May 18, 2018
1 parent 6e6ea19 commit a22b08a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.8 (18 May 2018)

- Fix tabix index error for variants present at position 1 of contigs.

## 0.1.7 (15 August 2016)

- Avoid FreeBayes error when running `--variant-input` without an empty VCF.
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject bcbio.variation.recall "0.1.7"
(defproject bcbio.variation.recall "0.1.8"
:description "Parallel merging, squaring off and ensemble calling for genomic variants."
:url "https://github.com/chapmanb/bcbio.variation.recall"
:license {:name "MIT" :url "http://www.opensource.org/licenses/mit-license.html"}
Expand Down
2 changes: 1 addition & 1 deletion src/bcbio/variation/variantcontext.clj
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
(variants-in-region retriever (:chr vc) (:start vc) (:end vc)))
([retriever space start end]
(letfn [(get-vcs-in-source [[source fname]]
(with-open [vcf-iter (.query source space start end)]
(with-open [vcf-iter (.query source space (max 1 start) end)]
(doall (map #(assoc (from-vc %) :fname fname) (iterator-seq vcf-iter)))))]
(mapcat get-vcs-in-source (map vector (:sources retriever) (:fnames retriever))))))

Expand Down

0 comments on commit a22b08a

Please sign in to comment.