From 18dae0d45dc9432930fb7f880837d844c0b7ea9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciara=CC=81n=20O=E2=80=99Mara?= Date: Sun, 27 Jun 2021 20:41:58 +1000 Subject: [PATCH] Comments --- src/sam/reader.jl | 2 +- src/sam/record.jl | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/sam/reader.jl b/src/sam/reader.jl index 62a6ad5..46fd286 100644 --- a/src/sam/reader.jl +++ b/src/sam/reader.jl @@ -12,7 +12,7 @@ function Reader(state::State{S}) where {S <: TranscodingStream} cs, ln = readheader!(rdr.state.stream, rdr.header, (sam_machine_header.start_state, rdr.state.linenum)) - rdr.state.state = sam_machine_body.start_state + rdr.state.state = sam_machine_body.start_state # Get the reader ready to read the body. rdr.state.linenum = ln rdr.state.filled = false diff --git a/src/sam/record.jl b/src/sam/record.jl index dcddf42..7dde515 100644 --- a/src/sam/record.jl +++ b/src/sam/record.jl @@ -2,10 +2,11 @@ # ========== mutable struct Record - # data and filled range + # Data and filled range. data::Vector{UInt8} - filled::UnitRange{Int} - # indexes + filled::UnitRange{Int} # Note: Specifies the data in use. + + # Mandatory fields. qname::UnitRange{Int} flag::UnitRange{Int} rname::UnitRange{Int} @@ -17,6 +18,8 @@ mutable struct Record tlen::UnitRange{Int} seq::UnitRange{Int} qual::UnitRange{Int} + + # Auxiliary fields. fields::Vector{UnitRange{Int}} end