Skip to content

Commit 18dae0d

Browse files
committed
Comments
1 parent 9d2a705 commit 18dae0d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/sam/reader.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Reader(state::State{S}) where {S <: TranscodingStream}
1212

1313
cs, ln = readheader!(rdr.state.stream, rdr.header, (sam_machine_header.start_state, rdr.state.linenum))
1414

15-
rdr.state.state = sam_machine_body.start_state
15+
rdr.state.state = sam_machine_body.start_state # Get the reader ready to read the body.
1616
rdr.state.linenum = ln
1717
rdr.state.filled = false
1818

src/sam/record.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
# ==========
33

44
mutable struct Record
5-
# data and filled range
5+
# Data and filled range.
66
data::Vector{UInt8}
7-
filled::UnitRange{Int}
8-
# indexes
7+
filled::UnitRange{Int} # Note: Specifies the data in use.
8+
9+
# Mandatory fields.
910
qname::UnitRange{Int}
1011
flag::UnitRange{Int}
1112
rname::UnitRange{Int}
@@ -17,6 +18,8 @@ mutable struct Record
1718
tlen::UnitRange{Int}
1819
seq::UnitRange{Int}
1920
qual::UnitRange{Int}
21+
22+
# Auxiliary fields.
2023
fields::Vector{UnitRange{Int}}
2124
end
2225

0 commit comments

Comments
 (0)