From 789a12fe4232fa0ac80aed75244b8f54699d06b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenta=20Sato=20=28=E4=BD=90=E8=97=A4=20=E5=BB=BA=E5=A4=AA?= =?UTF-8?q?=29?= Date: Sat, 21 Jan 2017 23:29:07 +0900 Subject: [PATCH] fix the SAM header parser (#377) --- src/align/hts/sam/reader.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/align/hts/sam/reader.jl b/src/align/hts/sam/reader.jl index 4c084f61f..d778e9583 100644 --- a/src/align/hts/sam/reader.jl +++ b/src/align/hts/sam/reader.jl @@ -17,6 +17,7 @@ type SAMReader <: Bio.IO.AbstractReader reader = new(Ragel.State(samparser_start, input), SAMHeader()) while !eof(input) && BufferedStreams.peek(input) == UInt8('@') # NOTE: This reads a header line, not the first record. + reader.state.cs = samparser_start @assert read(reader) == SAMRecord() end return reader