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))
Sourcenew
SourceInstance methods
add_contig(id : String, length : Int | Nil = nil, **attributes)
Sourceadd_filter(id : String, description : String, **attributes)
Sourceadd_format(id : String, *, number, type, description : String, **attributes)
Sourceadd_info(id : String, *, number, type, description : String, **attributes)
Sourceadd_meta(key : String, value : String | Nil = nil, **attributes)
Sourceadd_sample(sample, sync : Bool = true)
Sourceappend(line)
Sourceclone
Sourcedelete(bcf_hl_type, key = nil)
Sourceedit
Sourcefinalize
Sourceformat_type(tag : String)
Character is reported as :string because htslib exposes both via BCF_HT_STR.
get_tid(name : String) : Int32
Sourceinfo_type(tag : String)
Character is reported as :string because htslib exposes both via BCF_HT_STR.
merge(hdr)
Sourcename2id(name : String) : Int32
Sourcensamples
Sourceread_bcf(fname)
Sourceremove_contig(id : String) : Bool
Sourceremove_filter(id : String) : Bool
Sourceremove_format(id : String) : Bool
Sourceremove_info(id : String) : Bool
Sourcesamples
Sourcesubset(sample_names : Enumerable(String))
Sourcesubset?
Sourcesubset_imap_buffer
Sourcesubset_sample_count
Sourcesubset_samples
Sourcesync
Sourcetarget_count
Sourcetarget_name(rid : Int32) : String
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_format(id : String, *, number, type, description : String, **attributes)
Sourceupdate_info(id : String, *, number, type, description : String, **attributes)
Sourceversion
Sourceversion=(version)
Source