class

HTS::Bcf::Header

Inherits Reference < Object

Constants

BCF_TYPE_MAP = {:int => "Integer", :integer => "Integer", :int32 => "Integer", :float => "Float", :real => "Float", :string => "String", :str => "String", :character => "Character", :char => "Character", :flag => "Flag"}

Constructors

new(hts_file : Pointer(HTS::LibHTS::HtsFile))
Source
new(bcf_hdr : Pointer(HTS::LibHTS::BcfHdrT))

for clone

Source

Instance methods

add_contig(id : String, length : Int | Nil = nil, **attributes)
Source
add_filter(id : String, description : String, **attributes)
Source
add_format(id : String, *, number, type, description : String, **attributes)
Source
add_info(id : String, *, number, type, description : String, **attributes)
Source
add_meta(key : String, value : String | Nil = nil, **attributes)
Source
add_sample(sample, sync : Bool = true)
Source
append(line)
Source
clone
Source
delete(bcf_hl_type, key = nil)
Source
edit
Source
finalize
Source
format_type(tag : String)

Character is reported as :string because htslib exposes both via BCF_HT_STR.

Source
get_tid(name : String) : Int32
Source
info_type(tag : String)

Character is reported as :string because htslib exposes both via BCF_HT_STR.

Source
merge(hdr)
Source
name2id(name : String) : Int32
Source
nsamples
Source
read_bcf(fname)
Source
remove_contig(id : String) : Bool
Source
remove_filter(id : String) : Bool
Source
remove_format(id : String) : Bool
Source
remove_info(id : String) : Bool
Source
samples
Source
subset(sample_names : Enumerable(String))
Source
subset?
Source
subset_imap_buffer
Source
subset_sample_count
Source
subset_samples
Source
sync
Source
target_count
Source
target_name(rid : Int32) : String
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_format(id : String, *, number, type, description : String, **attributes)
Source
update_info(id : String, *, number, type, description : String, **attributes)
Source
version
Source
version=(version)
Source