1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-12-23 13:28:16 +00:00

Subtype from XAMRecord

This commit is contained in:
Ciarán O'Mara 2023-01-09 12:48:54 +11:00
parent 8151d877e7
commit 0d1eec3ed3
6 changed files with 8 additions and 5 deletions

View file

@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Subtype from XAMReader and XAMWriter from common abstract types.
- Subtype from XAMRecord.
- Unified flag queries.
## [0.3.1]

View file

@ -5,7 +5,8 @@ using BioGenerics
export
SAM,
BAM
abstract type XAMRecord end
abstract type XAMReader <: BioGenerics.IO.AbstractReader end
abstract type XAMWriter <: BioGenerics.IO.AbstractWriter end

View file

@ -6,7 +6,7 @@ module BAM
using BioGenerics
using GenomicFeatures
using XAM.SAM
import ..XAM: flag, XAMReader, XAMWriter
import ..XAM: flag, XAMRecord, XAMReader, XAMWriter
import BGZFStreams
import BioAlignments

View file

@ -6,7 +6,7 @@
Create an unfilled BAM record.
"""
mutable struct Record
mutable struct Record <: XAMRecord
# fixed-length fields (see BMA specs for the details)
block_size::Int32
refid::Int32

View file

@ -1,7 +1,7 @@
# SAM Record
# ==========
mutable struct Record
mutable struct Record <: XAMRecord
# Data and filled range.
data::Vector{UInt8}
filled::UnitRange{Int} # Note: Specifies the data in use.

View file

@ -11,7 +11,7 @@ import BioGenerics.Exceptions: missingerror
import BioGenerics.Automa: State
import BioSequences
import TranscodingStreams: TranscodingStreams, TranscodingStream
import ..XAM: flag, XAMReader, XAMWriter
import ..XAM: flag, XAMRecord, XAMReader, XAMWriter
using Printf: @sprintf