class
HTS::Bcf::Header
- HTS::Bcf::Header
- Reference
- Object
Defined in:
hts/bcf/header.crConstant Summary
-
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))
-
.new(bcf_hdr : Pointer(HTS::LibHTS::BcfHdrT))
for clone
- .new
Instance Method Summary
- #add_contig(id : String, length : Int | Nil = nil, **attributes)
- #add_filter(id : String, description : String, **attributes)
- #add_format(id : String, *, number, type, description : String, **attributes)
- #add_info(id : String, *, number, type, description : String, **attributes)
- #add_meta(key : String, value : String | Nil = nil, **attributes)
- #add_sample(sample, sync : Bool = true)
- #append(line)
- #clone
- #delete(bcf_hl_type, key = nil)
- #edit(&)
- #finalize
-
#format_type(tag : String)
Character is reported as :string because htslib exposes both via BCF_HT_STR.
- #get_tid(name : String) : Int32
- #get_version
-
#info_type(tag : String)
Character is reported as :string because htslib exposes both via BCF_HT_STR.
- #merge(hdr)
- #name2id(name : String) : Int32
- #nsamples
- #read_bcf(fname)
- #remove_contig(id : String) : Bool
- #remove_filter(id : String) : Bool
- #remove_format(id : String) : Bool
- #remove_info(id : String) : Bool
- #samples
- #set_version(version)
- #subset(sample_names : Enumerable(String))
- #subset? : Bool
- #subset_imap_buffer : Pointer(Int32)
- #subset_sample_count : Int32
- #subset_samples : Array(String)?
- #sync
- #target_count : Int32
- #target_name(rid : Int32) : String
- #target_names : Array(String)
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #to_unsafe : Pointer(HTS::LibHTS::BcfHdrT)
- #update_format(id : String, *, number, type, description : String, **attributes)
- #update_info(id : String, *, number, type, description : String, **attributes)
Constructor Detail
Instance Method Detail
def format_type(tag : String)
#
Character is reported as :string because htslib exposes both via BCF_HT_STR.
def info_type(tag : String)
#
Character is reported as :string because htslib exposes both via BCF_HT_STR.
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>