class HTS::Bam::Header

Defined in:

hts/bam/header.cr

Constant Summary

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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(hts_file : Pointer(HTS::LibHTS::HtsFile)) #

[View source]
def self.new(sam_hdr : Pointer(HTS::LibHTS::SamHdrT)) #

for clone


[View source]
def self.new #

[View source]

Class Method Detail

def self.parse(text) #

[View source]

Instance Method Detail

def add_pg(name, *args) #

[View source]
def add_rg(id : String, **tags) #

[View source]
def add_sq(name : String, length : Int, **tags) #

[View source]
def append(line : String) #

[View source]
def clone #

[View source]
def count_lines(type : String) : Int32 #

[View source]
def delete_line(type : String, id_key : String | Nil = nil, id_value : String | Nil = nil) : Bool #

[View source]
def delete_tag(type : String, id_key : String | Nil, id_value : String | Nil, key : String) : Bool #

[View source]
def finalize #

[View source]
def find_line(type : String, id_key : String | Nil = nil, id_value : String | Nil = nil) : String | Nil #

[View source]
def find_tag(type : String, id_key : String | Nil, id_value : String | Nil, key : String) : String | Nil #

[View source]
def get_tid(name) #

experimental


[View source]
def line_index(type : String, key : String) : Int32 #

[View source]
def line_name(type : String, pos : Int) : String | Nil #

[View source]
def remove_rg(id : String) : Bool #

[View source]
def remove_sq(name : String) : Bool #

[View source]
def target_count #

[View source]
def target_len #

[View source]
def target_name(tid) #

[View source]
def target_names #

[View source]
def to_s(io : IO) #
Description copied from class Reference

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>

[View source]
def to_unsafe : Pointer(HTS::LibHTS::SamHdrT) #

[View source]
def update_hd(**tags) #

[View source]
def update_rg(id : String, **tags) #

[View source]
def update_sq(name : String, **tags) #

[View source]