Method: HTS::Bcf::Record#format

Defined in:
lib/hts/bcf/record.rb

#format(key = nil) ⇒ Object



122
123
124
125
126
127
128
129
# File 'lib/hts/bcf/record.rb', line 122

def format(key = nil)
  LibHTS.bcf_unpack(@bcf1, LibHTS::BCF_UN_FMT)
  if key
    Format.new(self).get(key)
  else
    Format.new(self)
  end
end