HTS::Bam::Record
Inherits Reference < Object
Constants
SEQ_NT16_STR = "=ACMGRSVTWYHKDBN"
Constructors
new(header : Bam::Header, qname : String, flag : UInt16 | Int32, tid : Int32, pos : Int64, mapq : UInt8 | Int32, cigar_words : Array(UInt32), seq : String, qual : Array(UInt8), mtid : Int32 = -1, mpos : Int64 = 0_i64, isize : Int64 = 0_i64)
Convenience constructor: build a record with core fields using bam_set1
- Coordinates are 0-based (as in BAM core)
- CIGAR may be given as encoded words (Array(UInt32)) or SAM string
- Qualities are Phred-scaled values (0..93), one per base
new(header : Bam::Header, qname : String, flag : UInt16 | Int32, rname : String, pos : Int64, mapq : UInt8 | Int32, cigar_str : String, seq : String, qual : Array(UInt8), mtid : Int32 = -1, mpos : Int64 = 0_i64, isize : Int64 = 0_i64)
Overload: rname + CIGAR as String
new(header : Bam::Header, bam1_t : Pointer(HTS::LibHTS::Bam1T))
Sourcenew(header : Bam::Header)
SourceInstance methods
aux_char(str) : Char | Nil
Sourceaux_float(str) : Float64 | Nil
Sourceaux_string(str) : String | Nil
Sourcebase_mod
Base modification accessor NOTE: Currently always returns a new BaseMod instance to avoid a finalizer cycle between Record and BaseMod. In the future, memoization could be considered for performance optimization once the GC cycle issue is resolved.
bin
Sourcebin=(bin)
Sourceclone
Sourceduplicate?
Sourceflag=(flag : Flag)
Sourceflag=(flag)
Sourceheader
Sourceinsert_size=(isize)
Sourceisize
Sourceisize=(isize)
Sourcelen
Sourcemapq=(mapq)
Sourcemate_contig
Sourcemate_pos=(mpos)
Sourcemate_reverse?
Sourcemate_strand
Sourcemate_unmapped?
Sourcempos
Sourcempos=(mpos)
Sourcemtid=(mtid)
Sourcepaired?
Sourcepos=(pos)
Sourceproper_pair?
Sourceqcfail?
Sourceqlen
Sourceqname=(name)
Sourcequal_string
Sourceread1?
Sourceread2?
Sourcereverse?
Sourcerlen
Sourcesecondary?
Sourcesequence
Sourcestrand
Sourcesupplementary?
Sourcetid=(tid)
Sourceto_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
to_unsafe
Sourceunmapped?
Source