HTS::Bam::Header
Inherits Reference < Object
Constants
HD_TAG_MAP = {:version => "VN", :sort_order => "SO", :group_order => "GO", :subsorting => "SS"}
RG_TAG_MAP = {:id => "ID", :sample => "SM", :library => "LB", :platform => "PL", :platform_unit => "PU", :center => "CN", :description => "DS", :date => "DT", :flow_order => "FO", :key_sequence => "KS", :program => "PG", :insert_size => "PI", :molecule_topology => "PM"}
SQ_TAG_MAP = {:name => "SN", :length => "LN", :assembly => "AS", :md5 => "M5", :species => "SP", :uri => "UR", :alt_names => "AN"}
Constructors
new(hts_file : Pointer(HTS::LibHTS::HtsFile))
Sourcenew
SourceClass methods
parse(text)
SourceInstance methods
add_pg(name, *args)
Sourceadd_rg(id : String, **tags)
Sourceadd_sq(name : String, length : Int, **tags)
Sourceappend(line : String)
Sourceclone
Sourcecount_lines(type : String) : Int32
Sourcedelete_line(type : String, id_key : String | Nil = nil, id_value : String | Nil = nil) : Bool
Sourcedelete_tag(type : String, id_key : String | Nil, id_value : String | Nil, key : String) : Bool
Sourcefinalize
Sourcefind_line(type : String, id_key : String | Nil = nil, id_value : String | Nil = nil) : String | Nil
Sourcefind_tag(type : String, id_key : String | Nil, id_value : String | Nil, key : String) : String | Nil
Sourceline_index(type : String, key : String) : Int32
Sourceline_name(type : String, pos : Int) : String | Nil
Sourceremove_rg(id : String) : Bool
Sourceremove_sq(name : String) : Bool
Sourcetarget_count
Sourcetarget_len
Sourcetarget_name(tid)
Sourcetarget_names
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
Sourceupdate_hd
Sourceupdate_rg(id : String, **tags)
Sourceupdate_sq(name : String, **tags)
Source