From cc183115399e87bdf4709d29d91bdf2da23e1414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20O=27Mara?= Date: Fri, 22 May 2020 12:12:17 +1000 Subject: [PATCH 1/2] Increment version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 19cc98b..1f031ee 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "XAM" uuid = "d759349c-bcba-11e9-07c2-5b90f8f05f7c" authors = ["Kenta Sato ", "Ben J. Ward ", "CiarĂ¡n O'Mara "] -version = "0.2.3" +version = "0.2.4" [deps] Automa = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b" From 8b7a2ecc2b80ca7717b65d1489c99f50a0bf0d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20O=27Mara?= Date: Fri, 22 May 2020 12:11:46 +1000 Subject: [PATCH 2/2] Correct not found check --- src/bam/overlap.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bam/overlap.jl b/src/bam/overlap.jl index bb7b3c1..c6cf8ac 100644 --- a/src/bam/overlap.jl +++ b/src/bam/overlap.jl @@ -47,7 +47,7 @@ end function Base.iterate(iter::OverlapIterator) refindex = findfirst(isequal(iter.refname), iter.reader.refseqnames) - if refindex == 0 + if refindex === nothing throw(ArgumentError("sequence name $(iter.refname) is not found in the header")) end @assert iter.reader.index !== nothing