class

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))
Source
new(sam_hdr : Pointer(HTS::LibHTS::SamHdrT))

for clone

Source

Class methods

parse(text)
Source

Instance methods

add_pg(name, *args)
Source
add_rg(id : String, **tags)
Source
add_sq(name : String, length : Int, **tags)
Source
append(line : String)
Source
clone
Source
count_lines(type : String) : Int32
Source
delete_line(type : String, id_key : String | Nil = nil, id_value : String | Nil = nil) : Bool
Source
delete_tag(type : String, id_key : String | Nil, id_value : String | Nil, key : String) : Bool
Source
finalize
Source
find_line(type : String, id_key : String | Nil = nil, id_value : String | Nil = nil) : String | Nil
Source
find_tag(type : String, id_key : String | Nil, id_value : String | Nil, key : String) : String | Nil
Source
get_tid(name)

experimental

Source
line_index(type : String, key : String) : Int32
Source
line_name(type : String, pos : Int) : String | Nil
Source
remove_rg(id : String) : Bool
Source
remove_sq(name : String) : Bool
Source
target_count
Source
target_len
Source
target_name(tid)
Source
target_names
Source
to_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>
Source
to_unsafe
Source
update_hd
Source
update_rg(id : String, **tags)
Source
update_sq(name : String, **tags)
Source