Skip to content

Commit 0d1eec3

Browse files
committed
Subtype from XAMRecord
1 parent 8151d87 commit 0d1eec3

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Changed
1414

1515
- Subtype from XAMReader and XAMWriter from common abstract types.
16+
- Subtype from XAMRecord.
17+
- Unified flag queries.
1618

1719
## [0.3.1]
1820

src/XAM.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ using BioGenerics
55
export
66
SAM,
77
BAM
8-
8+
9+
abstract type XAMRecord end
910
abstract type XAMReader <: BioGenerics.IO.AbstractReader end
1011
abstract type XAMWriter <: BioGenerics.IO.AbstractWriter end
1112

src/bam/bam.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module BAM
66
using BioGenerics
77
using GenomicFeatures
88
using XAM.SAM
9-
import ..XAM: flag, XAMReader, XAMWriter
9+
import ..XAM: flag, XAMRecord, XAMReader, XAMWriter
1010

1111
import BGZFStreams
1212
import BioAlignments

src/bam/record.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
Create an unfilled BAM record.
88
"""
9-
mutable struct Record
9+
mutable struct Record <: XAMRecord
1010
# fixed-length fields (see BMA specs for the details)
1111
block_size::Int32
1212
refid::Int32

src/sam/record.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SAM Record
22
# ==========
33

4-
mutable struct Record
4+
mutable struct Record <: XAMRecord
55
# Data and filled range.
66
data::Vector{UInt8}
77
filled::UnitRange{Int} # Note: Specifies the data in use.

src/sam/sam.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import BioGenerics.Exceptions: missingerror
1111
import BioGenerics.Automa: State
1212
import BioSequences
1313
import TranscodingStreams: TranscodingStreams, TranscodingStream
14-
import ..XAM: flag, XAMReader, XAMWriter
14+
import ..XAM: flag, XAMRecord, XAMReader, XAMWriter
1515

1616
using Printf: @sprintf
1717

0 commit comments

Comments
 (0)