Skip to content

Commit

Permalink
Subtype from XAMRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
CiaranOMara committed Jan 9, 2023
1 parent 77a6f6a commit 37bb5d2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/XAM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/bam/bam.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/bam/record.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/sam/record.jl
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/sam/sam.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 37bb5d2

Please sign in to comment.