Class: HTS::VCF::Header
- Inherits:
-
Object
- Object
- HTS::VCF::Header
- Defined in:
- lib/hts/vcf/header.rb
Instance Attribute Summary collapse
-
#h ⇒ Object
readonly
Returns the value of attribute h.
Instance Method Summary collapse
-
#initialize(h) ⇒ Header
constructor
A new instance of Header.
-
#seqs ⇒ Object
FIXME: better name?.
- #text ⇒ Object
Constructor Details
#initialize(h) ⇒ Header
Returns a new instance of Header.
8 9 10 |
# File 'lib/hts/vcf/header.rb', line 8 def initialize(h) @h = h end |
Instance Attribute Details
#h ⇒ Object (readonly)
Returns the value of attribute h.
6 7 8 |
# File 'lib/hts/vcf/header.rb', line 6 def h @h end |
Instance Method Details
#seqs ⇒ Object
FIXME: better name?
13 14 15 16 17 |
# File 'lib/hts/vcf/header.rb', line 13 def seqs Array.new(@h[:n_targets]) do |i| FFI.sam_hdr_tid2name(@h, i) end end |
#text ⇒ Object
19 20 21 |
# File 'lib/hts/vcf/header.rb', line 19 def text FFI.sam_hdr_str(@h) end |